Commit 9f710317 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

appsink: Only emit EOS signal if emit-signals=TRUE like for all other signals

parent 01dfee8f
Pipeline #30630 passed with stages
in 45 minutes and 28 seconds
......@@ -715,6 +715,7 @@ gst_app_sink_event (GstBaseSink * sink, GstEvent * event)
break;
case GST_EVENT_EOS:{
gboolean emit = TRUE;
gboolean emit_signals;
g_mutex_lock (&priv->mutex);
GST_DEBUG_OBJECT (appsink, "receiving EOS");
......@@ -748,13 +749,14 @@ gst_app_sink_event (GstBaseSink * sink, GstEvent * event)
}
if (priv->flushing)
emit = FALSE;
emit_signals = priv->emit_signals;
g_mutex_unlock (&priv->mutex);
if (emit) {
/* emit EOS now */
if (priv->callbacks.eos)
priv->callbacks.eos (appsink, priv->user_data);
else
else if (emit_signals)
g_signal_emit (appsink, gst_app_sink_signals[SIGNAL_EOS], 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment