OSDN Git Service

LinGui: fix a problem with 2 pass non-turbo mode
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 20 Jun 2009 18:43:04 +0000 (18:43 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 20 Jun 2009 18:43:04 +0000 (18:43 +0000)
job->x264opts was not getting set in the first pass which caused segfault

git-svn-id: svn://localhost/HandBrake/trunk@2590 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/hb-backend.c

index ab2bc2c..7dc568a 100644 (file)
@@ -4178,6 +4178,10 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex)
 
                        job->x264opts = tmp_x264opts;
                }
+               else
+               {
+                       job->x264opts = x264opts;
+               }
                job->sequence_id = (unique_id & 0xFFFFFF) | (sub_id++ << 24);
                hb_add( h, job );
                //if (job->x264opts != NULL)