mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
80b6a60d89
commit
d392994597
3 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||||
|
|
||||||
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)
|
||||||
} 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);
|
||||||
|
|
Loading…
Reference in a new issue