← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 664: Added a missing is_valid() check on a MLT producer.

 

------------------------------------------------------------
revno: 664
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Wed 2012-05-09 20:56:51 +0100
message:
  Added a missing is_valid() check on a MLT producer.
modified:
  openshot/classes/video.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/classes/video.py'
--- openshot/classes/video.py	2012-02-05 20:49:07 +0000
+++ openshot/classes/video.py	2012-05-09 19:56:51 +0000
@@ -209,7 +209,7 @@
 		# Create the producer
 		self.p = mlt.Producer( self.profile, 'xml:%s' % self.file_name)
 
-		if self.p:
+		if self.p.is_valid():
 			# set speed to zero (i.e. pause)
 			self.pause()