mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
assrender: Unlock and free any pending subtitle buffers on FLUSH_START
This commit is contained in:
parent
3b2ab1299c
commit
e38fbc6795
1 changed files with 6 additions and 0 deletions
|
@ -757,6 +757,12 @@ gst_assrender_event_text (GstPad * pad, GstEvent * event)
|
||||||
GST_OBJECT_UNLOCK (render);
|
GST_OBJECT_UNLOCK (render);
|
||||||
GST_DEBUG_OBJECT (render, "done flushing");
|
GST_DEBUG_OBJECT (render, "done flushing");
|
||||||
}
|
}
|
||||||
|
g_mutex_lock (render->subtitle_mutex);
|
||||||
|
if (render->subtitle_pending)
|
||||||
|
gst_buffer_unref (render->subtitle_pending);
|
||||||
|
render->subtitle_pending = NULL;
|
||||||
|
g_cond_signal (render->subtitle_cond);
|
||||||
|
g_mutex_unlock (render->subtitle_mutex);
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue