diff options
author | Florin Apostol <florin.apostol@oregan.net> | 2016-01-08 16:25:12 +0000 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2016-02-09 09:38:54 -0300 |
commit | 97c562ecbf2120bcdc99761f29026f5e64c3c992 (patch) | |
tree | f1e53398ebb82669aff70949fd181652b2022d71 /tests | |
parent | d07484c8379629ff281760169670651556c1472b (diff) |
adaptivedemux: tests: remove unused demux_sent_eos callback
The demux_sent_eos callback is unused in tests. It was also registered on
a wrong pad, so it actually triggered when demux received eos from a
fragment download.
https://bugzilla.gnome.org/show_bug.cgi?id=760328
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/elements/adaptive_demux_engine.c | 7 | ||||
-rw-r--r-- | tests/check/elements/adaptive_demux_engine.h | 11 |
2 files changed, 0 insertions, 18 deletions
diff --git a/tests/check/elements/adaptive_demux_engine.c b/tests/check/elements/adaptive_demux_engine.c index 34ea252f4..a78d7419f 100644 --- a/tests/check/elements/adaptive_demux_engine.c +++ b/tests/check/elements/adaptive_demux_engine.c @@ -215,13 +215,6 @@ on_demuxReceivesEvent (GstPad * pad, GstPadProbeInfo * info, gpointer data) stream->segment_received_size = 0; stream->segment_start = segment->start; GST_TEST_UNLOCK (priv); - } else if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) { - GST_TEST_LOCK (priv); - stream = getTestOutputDataByPad (priv, pad, TRUE); - if (priv->callbacks->demux_sent_eos) { - priv->callbacks->demux_sent_eos (&priv->engine, stream, priv->user_data); - } - GST_TEST_UNLOCK (priv); } return GST_PAD_PROBE_OK; diff --git a/tests/check/elements/adaptive_demux_engine.h b/tests/check/elements/adaptive_demux_engine.h index e23205121..f715ecb23 100644 --- a/tests/check/elements/adaptive_demux_engine.h +++ b/tests/check/elements/adaptive_demux_engine.h @@ -136,17 +136,6 @@ typedef struct _GstAdaptiveDemuxTestCallbacks GstBuffer * buffer, gpointer user_data); /** - * demux_sent_eos: called each time demux send an EOS event - * @engine: #GstAdaptiveDemuxTestEngine - * @stream: #GstAdaptiveDemuxTestOutputStream - * @user_data: the user_data passed to gst_adaptive_demux_test_run() - * Can be used by a test to perform additional operations (eg validate - * output data) - */ - void (*demux_sent_eos) (GstAdaptiveDemuxTestEngine *engine, - GstAdaptiveDemuxTestOutputStream * stream, gpointer user_data); - - /** * bus_error_message: called if an error is posted to the bus * @engine: #GstAdaptiveDemuxTestEngine * @msg: the #GstMessage that contains the error |