mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
adaptivedemux: Allow that
This commit is contained in:
parent
309368bac3
commit
4a0bb14d9c
1 changed files with 4 additions and 3 deletions
|
@ -417,9 +417,10 @@ on_demuxPadRemoved (GstElement * demux, GstPad * pad, gpointer user_data)
|
||||||
priv->callbacks->demux_pad_removed (&priv->engine, stream, priv->user_data);
|
priv->callbacks->demux_pad_removed (&priv->engine, stream, priv->user_data);
|
||||||
}
|
}
|
||||||
fail_unless (stream->appsink != NULL);
|
fail_unless (stream->appsink != NULL);
|
||||||
fail_unless (stream->internal_pad != NULL);
|
if (stream->internal_pad) {
|
||||||
gst_object_unref (stream->internal_pad);
|
gst_object_unref (stream->internal_pad);
|
||||||
stream->internal_pad = NULL;
|
stream->internal_pad = NULL;
|
||||||
|
}
|
||||||
appSink = GST_ELEMENT (stream->appsink);
|
appSink = GST_ELEMENT (stream->appsink);
|
||||||
ret = gst_element_get_state (appSink, ¤tState, &pending, 0);
|
ret = gst_element_get_state (appSink, ¤tState, &pending, 0);
|
||||||
if ((ret == GST_STATE_CHANGE_SUCCESS && currentState == GST_STATE_PLAYING)
|
if ((ret == GST_STATE_CHANGE_SUCCESS && currentState == GST_STATE_PLAYING)
|
||||||
|
|
Loading…
Reference in a new issue