]> granicus.if.org Git - handbrake/commitdiff
sync: fix dropping of subtitles caused by my previous commit
authorjstebbins <jstebbins.hb@gmail.com>
Fri, 5 Dec 2014 16:49:11 +0000 (16:49 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Fri, 5 Dec 2014 16:49:11 +0000 (16:49 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6588 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/sync.c

index 17d0280e8cbf521a8b16b88c9811aa6aef120265..575e079ae1fdbb2ee93e5a51fed25023b0b8c138 100644 (file)
@@ -374,6 +374,10 @@ static hb_buffer_t * mergeSubtitles(subtitle_sanitizer_t *sanitizer, int end)
                         hb_buffer_t *tmp = a;
                         a->next = b->next;
                         b->next = a;
+                        if (sanitizer->last == b)
+                        {
+                            sanitizer->last = a;
+                        }
                         a = b;
                         b = tmp;
                         sanitizer->list_current = a;