-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi Duncan,

artifact 2556366 is now locked, so I think I would post this by email

since I posted the patch that is in the artifact 2556366 , SVN changed a
lot ; so I looked into my original patch, to see what is worth saving

one of the ideas of the code was to store the return code from the
encodingjob job that is run by CommandThread; this is now implemented in
 current SVN in encodingcore.py in line 952, where the return code is
saved into self.returncode; but I did not understand how this is
supposed to be used

I attach the only part of the patch that may be worth ; I do not know
what to write into the ???? part, that is, how to access the returncode

a.

ps: once this is fixed, I will look into the patch of artifact 2489762
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkniYAkACgkQ9B/tjjP8QKRdvgCfb3TkJQolgZ3pyn4U9x7svIJB
qkUAniKNWiBVkgE9o+qt5jJ0y5/djhWc
=+3f1
-----END PGP SIGNATURE-----
Index: src/encodingcore.py
===================================================================
--- src/encodingcore.py	(revision 11409)
+++ src/encodingcore.py	(working copy)
@@ -1043,6 +1043,21 @@
         self.currentjob = self.qlist[0]
 
         _debug_('PID %s' % self.currentjob.pid)
+ 
+        if  ??? exitstatus != None and exitstatus != 0 ??? :
+            _debug_('error while recoding %r, at pass %d' %\
+                  (self.currentjob.output,self.currentjob.status))
+            (shortname, extension) = os.path.splitext( self.currentjob.output)
+            try:
+                os.rename(self.currentjob.output + '~incomplete~',\
+                              shortname+'-failed'+extension)
+            except OSError :
+                _debug_('Cannot rename file  '+self.currentjob.output, DWARNING)
+            #this job is broken, remove it
+            del self.qlist[0]
+            del self.qdict[self.currentjob.idnr]
+            self._runQueue()
+            return
 
         if self.currentjob.status == status.vpassfinal:
             _debug_('Job %s finished' % self.currentjob.idnr, DINFO)
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to