Commit d3929945 authored by Arun Raghavan's avatar Arun Raghavan Committed by Tim-Philipp Müller
Browse files

discoverer: Fix argument type to _container_info_get_streams()

No reason for gst_discoverer_container_info_get_streams() to not take a
GstDiscovererContainerInfo as its argument.
parent 80b6a60d
...@@ -595,14 +595,13 @@ gst_discoverer_stream_info_get_misc (GstDiscovererStreamInfo * info) ...@@ -595,14 +595,13 @@ gst_discoverer_stream_info_get_misc (GstDiscovererStreamInfo * info)
*/ */
GList * GList *
gst_discoverer_container_info_get_streams (GstDiscovererStreamInfo * info) gst_discoverer_container_info_get_streams (GstDiscovererContainerInfo * info)
{ {
GList *res = NULL, *tmp; GList *res = NULL, *tmp;
g_return_val_if_fail (GST_IS_DISCOVERER_CONTAINER_INFO (info), NULL); g_return_val_if_fail (GST_IS_DISCOVERER_CONTAINER_INFO (info), NULL);
for (tmp = GST_DISCOVERER_CONTAINER_INFO (info)->streams; tmp; for (tmp = info->streams; tmp; tmp = tmp->next)
tmp = tmp->next)
res = res =
g_list_append (res, g_list_append (res,
gst_discoverer_stream_info_ref ((GstDiscovererStreamInfo *) tmp->data)); gst_discoverer_stream_info_ref ((GstDiscovererStreamInfo *) tmp->data));
......
...@@ -72,7 +72,7 @@ typedef GstMiniObjectClass GstDiscovererContainerInfoClass; ...@@ -72,7 +72,7 @@ typedef GstMiniObjectClass GstDiscovererContainerInfoClass;
GType gst_discoverer_container_info_get_type (void); GType gst_discoverer_container_info_get_type (void);
GList *gst_discoverer_container_info_get_streams(GstDiscovererStreamInfo *info); GList *gst_discoverer_container_info_get_streams(GstDiscovererContainerInfo *info);
/** /**
......
...@@ -229,7 +229,9 @@ print_topology (GstDiscovererStreamInfo * info, gint depth) ...@@ -229,7 +229,9 @@ print_topology (GstDiscovererStreamInfo * info, gint depth)
} else if (GST_IS_DISCOVERER_CONTAINER_INFO (info)) { } else if (GST_IS_DISCOVERER_CONTAINER_INFO (info)) {
GList *tmp, *streams; GList *tmp, *streams;
streams = gst_discoverer_container_info_get_streams (info); streams =
gst_discoverer_container_info_get_streams (GST_DISCOVERER_CONTAINER_INFO
(info));
for (tmp = streams; tmp; tmp = tmp->next) { for (tmp = streams; tmp; tmp = tmp->next) {
GstDiscovererStreamInfo *tmpinf = (GstDiscovererStreamInfo *) tmp->data; GstDiscovererStreamInfo *tmpinf = (GstDiscovererStreamInfo *) tmp->data;
print_topology (tmpinf, depth + 1); print_topology (tmpinf, depth + 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment