Re: [jokosher-devel] Possible workaround for last critical bug



Actually better to move the hack down until after the debug print so that
the reported error is still sent to debug output. So all we're doing is not
displaying the 'Argh' error dialog on this particular error. Jokosher was
still recording OK anyway it's just the error dialog popped up and the
playhead didn't move.

-- 
John Green
Index: TransportManager.py
===================================================================
--- TransportManager.py	(revision 937)
+++ TransportManager.py	(working copy)
@@ -241,10 +241,12 @@
 			self.SetPosition(self.position + self.SEEK_RATE/self.FPS)
 		elif self.isPlaying:
 			try:
+				#FIXME: This check commented out to get round bug 69714
 				#if pipeline should be playing and has not quite 
 				#yet started then ignore this time through
-				if self.pipeline.get_state(0)[1] == gst.STATE_PAUSED:
-					return True
+				#if self.pipeline.get_state(0)[1] == gst.STATE_PAUSED:
+				#	return True
+				#end FIXME:
 				self.QueryPosition()
 			except gst.QueryError:
 				pass
Index: Project.py
===================================================================
--- Project.py	(revision 937)
+++ Project.py	(working copy)
@@ -671,6 +671,10 @@
 		error, debug = message.parse_error()
 		
 		Globals.debug("Gstreamer bus error:", str(error), str(debug))
+		#FIXME: ignore not-linked on audiotestsrc to get round bug 69714
+		if ("reason not-linked" in debug) and ("audiotestsrc" in debug):
+			return
+		#end FIXME:
 		if self.BusErrorCallback:
 			self.BusErrorCallback(str(error), str(debug))
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]