]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix a problem with 2 pass non-turbo mode
authorjstebbins <jstebbins.hb@gmail.com>
Sat, 20 Jun 2009 18:43:04 +0000 (18:43 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
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://svn.handbrake.fr/HandBrake/trunk@2590 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/hb-backend.c

index ab2bc2c5e0117519e15197a6a5f81cf9464c5308..7dc568af7257e736812fc4c1e1d4fd2f48564174 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)