]> granicus.if.org Git - handbrake/commitdiff
MacGui: Live Preview Fixes
authordynaflash <dynaflashtech@gmail.com>
Wed, 28 Jan 2009 06:00:58 +0000 (06:00 +0000)
committerdynaflash <dynaflashtech@gmail.com>
Wed, 28 Jan 2009 06:00:58 +0000 (06:00 +0000)
- Fixes and Issue where using chapter markers on ffmpeg input sources caused a crash and or no encode and a gray screen.
- Fixes an issue where not manually selecting a still preview caused the live preview encode to crash.
- Many thanks to refulgentis for troubleshooting this for me. :)

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

macosx/Controller.mm
macosx/HBPreviewController.mm

index e82f6c6587cbd48f091b69afbd19cb55cc7b05d5..d185c6b5ae545e2d21a7cf7c627200d7362bd18f 100644 (file)
@@ -2623,56 +2623,10 @@ fWorkingCount = 0;
     job->mux = [[fDstFormatPopUp selectedItem] tag];
     job->vcodec = [[fVidEncoderPopUp selectedItem] tag];
 
-
-    /* If mpeg-4, then set mpeg-4 specific options like chapters and > 4gb file sizes */
-       if( [fDstFormatPopUp indexOfSelectedItem] == 0 )
-       {
-        /* We set the largeFileSize (64 bit formatting) variable here to allow for > 4gb files based on the format being
-               mpeg4 and the checkbox being checked 
-               *Note: this will break compatibility with some target devices like iPod, etc.!!!!*/
-               if( [fDstMp4LargeFileCheck state] == NSOnState )
-               {
-                       job->largeFileSize = 1;
-               }
-               else
-               {
-                       job->largeFileSize = 0;
-               }
-        /* We set http optimized mp4 here */
-        if( [fDstMp4HttpOptFileCheck state] == NSOnState && [fDstMp4HttpOptFileCheck isEnabled] )
-               {
-        job->mp4_optimize = 1;
-        }
-        else
-        {
-        job->mp4_optimize = 0;
-        }
-    }
-       if( [fDstFormatPopUp indexOfSelectedItem] == 0 || [fDstFormatPopUp indexOfSelectedItem] == 1 )
-       {
-         /* We set the chapter marker extraction here based on the format being
-               mpeg4 or mkv and the checkbox being checked */
-               if ([fCreateChapterMarkers state] == NSOnState)
-               {
-                       job->chapter_markers = 1;
-               }
-               else
-               {
-                       job->chapter_markers = 0;
-               }
-       }
-       
-    if( job->vcodec & HB_VCODEC_X264 )
+    job->chapter_markers = 0;
+    
+       if( job->vcodec & HB_VCODEC_X264 )
     {
-               if ([fDstMp4iPodFileCheck state] == NSOnState)
-           {
-            job->ipod_atom = 1;
-               }
-        else
-        {
-        job->ipod_atom = 0;
-        }
-               
                /* Set this flag to switch from Constant Quantizer(default) to Constant Rate Factor Thanks jbrjake
          Currently only used with Constant Quality setting*/
                if ([[NSUserDefaults standardUserDefaults] boolForKey:@"DefaultCrf"] > 0 && [fVidQualityMatrix selectedRow] == 2)
index a74282c506d4664a8c26753edbe1df1e02405c41..1b26e6cafbd01c6c939175b6d962d8109dadbecf 100644 (file)
@@ -342,6 +342,7 @@ return YES;
         isFullScreen = NO;
         scaleToScreen = NO;
         hudTimerSeconds = 0;
+        [self pictureSliderChanged:nil];
         [self startHudTimer];
         
     }