mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
playbin3: Remove stale code
Remove now-unused get_stream_type_for_event() function. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1900>
This commit is contained in:
parent
4a436b5c14
commit
90426f5751
1 changed files with 0 additions and 25 deletions
|
@ -2247,31 +2247,6 @@ get_source_group_for_streams (GstPlayBin3 * playbin, GstEvent * event)
|
|||
return res;
|
||||
}
|
||||
|
||||
static GstStreamType
|
||||
get_stream_type_for_event (GstStreamCollection * collection, GstEvent * event)
|
||||
{
|
||||
GList *stream_list = NULL;
|
||||
GList *tmp;
|
||||
GstStreamType res = 0;
|
||||
guint i, len;
|
||||
|
||||
gst_event_parse_select_streams (event, &stream_list);
|
||||
len = gst_stream_collection_get_size (collection);
|
||||
for (tmp = stream_list; tmp; tmp = tmp->next) {
|
||||
gchar *stid = (gchar *) tmp->data;
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
GstStream *stream = gst_stream_collection_get_stream (collection, i);
|
||||
if (!g_strcmp0 (stid, gst_stream_get_stream_id (stream))) {
|
||||
res |= gst_stream_get_stream_type (stream);
|
||||
}
|
||||
}
|
||||
}
|
||||
g_list_free_full (stream_list, g_free);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gst_play_bin3_send_event (GstElement * element, GstEvent * event)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue