]> granicus.if.org Git - handbrake/commitdiff
sync: more robust handling of p-to-p end time
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 26 Sep 2016 21:13:06 +0000 (14:13 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 26 Sep 2016 21:13:06 +0000 (14:13 -0700)
Continue processing input queues until none are full after p-to-p end
time is reached.

libhb/sync.c

index e869089a3166afc9378619169269c9fa50b69436..e27617da5922574191dbc3af58d2727fc3da123d 100644 (file)
@@ -1399,7 +1399,7 @@ static void OutputBuffer( sync_common_t * common )
             fifo_push(out_stream->fifo_out, hb_buffer_eof_init());
             terminateSubtitleStreams(common);
             signalBuffer(out_stream);
-            return;
+            continue;
         }
         if (out_stream->type == SYNC_TYPE_VIDEO &&
             common->job->frame_to_stop &&
@@ -1412,7 +1412,7 @@ static void OutputBuffer( sync_common_t * common )
             fifo_push(out_stream->fifo_out, hb_buffer_eof_init());
             terminateSubtitleStreams(common);
             signalBuffer(out_stream);
-            return;
+            continue;
         }
 
         if (out_stream->type == SYNC_TYPE_VIDEO)