mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
a08f0c1a22
commit
51426a3b2d
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue