mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
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
This commit is contained in:
parent
d07484c837
commit
97c562ecbf
2 changed files with 0 additions and 18 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue