textoverlay: continue processing text when silent

This prevents playback wegding when text buffers are
left to pile up.

https://bugzilla.gnome.org/show_bug.cgi?id=662829
This commit is contained in:
Vincent Penquerc'h 2011-10-27 14:48:52 +01:00
parent a08f0c1a22
commit 51426a3b2d

View file

@ -2542,7 +2542,7 @@ wait_for_text_buf:
if (overlay->video_eos)
goto have_eos;
if (overlay->silent) {
if (overlay->silent && !overlay->text_linked) {
GST_OBJECT_UNLOCK (overlay);
ret = gst_pad_push (overlay->srcpad, buffer);
@ -2632,6 +2632,11 @@ wait_for_text_buf:
GST_OBJECT_UNLOCK (overlay);
/* Push the video frame */
ret = gst_pad_push (overlay->srcpad, buffer);
} else if (overlay->silent) {
GST_LOG_OBJECT (overlay, "silent enabled, pushing video buf");
GST_OBJECT_UNLOCK (overlay);
/* Push the video frame */
ret = gst_pad_push (overlay->srcpad, buffer);
} else {
gchar *in_text;
gsize in_size;