]> granicus.if.org Git - handbrake/commitdiff
MacGui: Fix starting an encode when nothing is in the queue bug which was introduced...
authordynaflash <dynaflashtech@gmail.com>
Tue, 11 Sep 2007 16:21:27 +0000 (16:21 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Tue, 11 Sep 2007 16:21:27 +0000 (16:21 +0000)
- adds "addToQueue" method back to the "Rip" method if the queue is currently empty.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@950 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index 86d18ff13e40eb21c0bf3a093560e8a56e3713c7..74622d19e4fbd07a13037ad3c19404d0245c97e4 100644 (file)
@@ -1710,9 +1710,15 @@ static NSString *        ChooseSourceIdentifier             = @"Choose Source It
     }
     else
     {
+        /* We add a the encode to the queue if there is nothing in it and then start our encode.
+           This should be reviewed by travistex to verify queue sync, etc.*/
+        if( hb_count( fHandle ) == 0)
+        {
+            [self doAddToQueue]; 
+        }
         [self doRip];
     }
-}
+} 
 
 /* overWriteAlertDone: called from the alert posted by Rip: that asks the user if they
    want to overwrite an exiting movie file.