diff options
author | Jan Schmidt <jan@centricular.com> | 2017-02-09 00:16:33 +1100 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2017-02-09 00:16:33 +1100 |
commit | 4a0bb14d9c502120492c1cf107ca46f38c774f9b (patch) | |
tree | fed7a0c5df0e2be80f91b80f826d40227180912f /tests | |
parent | 309368bac3ffc541177f52f373df4ae421cdfc6c (diff) | |
download | gstreamer-plugins-bad-4a0bb14d9c502120492c1cf107ca46f38c774f9b.tar.gz |
adaptivedemux: Allow that
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/adaptive_demux_engine.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/check/elements/adaptive_demux_engine.c b/tests/check/elements/adaptive_demux_engine.c index 2b0bbdb49..9b29e2a95 100644 --- a/tests/check/elements/adaptive_demux_engine.c +++ b/tests/check/elements/adaptive_demux_engine.c @@ -417,9 +417,10 @@ on_demuxPadRemoved (GstElement * demux, GstPad * pad, gpointer user_data) priv->callbacks->demux_pad_removed (&priv->engine, stream, priv->user_data); } fail_unless (stream->appsink != NULL); - fail_unless (stream->internal_pad != NULL); - gst_object_unref (stream->internal_pad); - stream->internal_pad = NULL; + if (stream->internal_pad) { + gst_object_unref (stream->internal_pad); + stream->internal_pad = NULL; + } appSink = GST_ELEMENT (stream->appsink); ret = gst_element_get_state (appSink, ¤tState, &pending, 0); if ((ret == GST_STATE_CHANGE_SUCCESS && currentState == GST_STATE_PLAYING) |