Anonymous avatar Anonymous committed 5102fbd

Fixed get_stream_config

Comments (0)

Files changed (1)

 
 	def display_capture_filter_properties(self):
 		self.control.Stop()
-		self._do_property_pages(self, self.source)
+		self._do_property_pages(self.source)
 
 	@staticmethod
-	def _do_property_pages(self, subject):
+	def _do_property_pages(subject):
 		spec_pages = subject.QueryInterface(ISpecifyPropertyPages)
 		cauuid = spec_pages.GetPages()
 		if cauuid.element_count > 0:
 				PIN_CATEGORY_CAPTURE,
 				MEDIATYPE_Interleaved,
 				self.source,
-				IAMStreamConfig,
+				IAMStreamConfig._iid_,
 				]
 		try:
-			stream_config = self.graph_builder.FindInterface(*args)
+			stream_config = self.graph_builder.RemoteFindInterface(*args)
 		except COMError, e:
 			args[1] = MEDIATYPE_Video
-			stream_config = self.graph_builder.FindInterface(*args)
+			stream_config = self.graph_builder.RemoteFindInterface(*args)
 		return stream_config
 
 	def set_resolution(self, width, height):
 			code = e[0]
 			unknown_error = 'Unknown Error ({0:x})'.format(code)
 			msg = "Getting the sample grabber's current buffer failed ({0}).".format(error_map.get(code, unknown_error))
-			raise VidcapError(msg)
+			raise VidCapError(msg)
 		
 		return bytes(buffer[:size.value]), (width, height)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.