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.
This commit is contained in:
Arun Raghavan 2010-11-08 09:26:27 +05:30 committed by Tim-Philipp Müller
parent 80b6a60d89
commit d392994597
3 changed files with 6 additions and 5 deletions

View file

@ -595,14 +595,13 @@ gst_discoverer_stream_info_get_misc (GstDiscovererStreamInfo * info)
*/
GList *
gst_discoverer_container_info_get_streams (GstDiscovererStreamInfo * info)
gst_discoverer_container_info_get_streams (GstDiscovererContainerInfo * info)
{
GList *res = NULL, *tmp;
g_return_val_if_fail (GST_IS_DISCOVERER_CONTAINER_INFO (info), NULL);
for (tmp = GST_DISCOVERER_CONTAINER_INFO (info)->streams; tmp;
tmp = tmp->next)
for (tmp = info->streams; tmp; tmp = tmp->next)
res =
g_list_append (res,
gst_discoverer_stream_info_ref ((GstDiscovererStreamInfo *) tmp->data));

View file

@ -72,7 +72,7 @@ typedef GstMiniObjectClass GstDiscovererContainerInfoClass;
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);
/**

View file

@ -229,7 +229,9 @@ print_topology (GstDiscovererStreamInfo * info, gint depth)
} else if (GST_IS_DISCOVERER_CONTAINER_INFO (info)) {
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) {
GstDiscovererStreamInfo *tmpinf = (GstDiscovererStreamInfo *) tmp->data;
print_topology (tmpinf, depth + 1);