From 97c562ecbf2120bcdc99761f29026f5e64c3c992 Mon Sep 17 00:00:00 2001 From: Florin Apostol Date: Fri, 8 Jan 2016 16:25:12 +0000 Subject: [PATCH] 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 --- tests/check/elements/adaptive_demux_engine.c | 7 ------- tests/check/elements/adaptive_demux_engine.h | 11 ----------- 2 files changed, 18 deletions(-) diff --git a/tests/check/elements/adaptive_demux_engine.c b/tests/check/elements/adaptive_demux_engine.c index 34ea252f47..a78d7419f1 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 e232051219..f715ecb230 100644 --- a/tests/check/elements/adaptive_demux_engine.h +++ b/tests/check/elements/adaptive_demux_engine.h @@ -135,17 +135,6 @@ typedef struct _GstAdaptiveDemuxTestCallbacks GstAdaptiveDemuxTestOutputStream * stream, 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