[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-cvs
Subject: [gst-cvs] gst-plugins-base: gst-discoverer: Print out topology if
From: bilboed () kemper ! freedesktop ! org (Edward Hervey)
Date: 2010-09-29 17:01:09
Message-ID: 20100929170109.C725510056 () kemper ! freedesktop ! org
[Download RAW message or body]
Module: gst-plugins-base
Branch: master
Commit: e17b42181c2cbcc389f87a35539f7a1b07d3dd54
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=e17b42181c2cbcc389f87a35539f7a1b07d3dd54
Author: Edward Hervey <bilboed@bilboed.com>
Date: Wed Sep 29 18:57:50 2010 +0200
gst-discoverer: Print out topology if available.
If we have some unhandled streams, we can still print out the remaining
topology.
---
tools/gst-discoverer.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/tools/gst-discoverer.c b/tools/gst-discoverer.c
index 0dbca30..d547f0d 100644
--- a/tools/gst-discoverer.c
+++ b/tools/gst-discoverer.c
@@ -251,12 +251,6 @@ print_info (GstDiscovererInfo * info, GError * err)
switch (result) {
case GST_DISCOVERER_OK:
{
- sinfo = gst_discoverer_info_get_stream_info (info);
- g_print ("\nTopology:\n");
- print_topology (sinfo, 1);
- g_print ("\nDuration:\n");
- print_duration (info, 1);
- gst_discoverer_stream_info_unref (sinfo);
break;
}
case GST_DISCOVERER_URI_INVALID:
@@ -293,6 +287,14 @@ print_info (GstDiscovererInfo * info, GError * err)
}
}
+ if ((sinfo = gst_discoverer_info_get_stream_info (info))) {
+ g_print ("\nTopology:\n");
+ print_topology (sinfo, 1);
+ g_print ("\nDuration:\n");
+ print_duration (info, 1);
+ gst_discoverer_stream_info_unref (sinfo);
+ }
+
g_print ("\n");
}
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
gstreamer-cvs mailing list
gstreamer-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic