projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fc424b
)
discoverer: handle desc==NULL
author
Stefan Kost
<ensonic@users.sf.net>
Tue, 22 Feb 2011 14:41:54 +0000
(16:41 +0200)
committer
Stefan Kost
<ensonic@users.sf.net>
Tue, 22 Feb 2011 14:43:08 +0000
(16:43 +0200)
It would otherwise be printed as (null) and mess up indentation (no \n).
tools/gst-discoverer.c
patch
|
blob
|
history
diff --git
a/tools/gst-discoverer.c
b/tools/gst-discoverer.c
index
c68721b
..
00d2d0f
100644
(file)
--- a/
tools/gst-discoverer.c
+++ b/
tools/gst-discoverer.c
@@
-204,8
+204,10
@@
print_stream_info (GstDiscovererStreamInfo * info, void *depth)
desc =
gst_stream_video_information_to_string (info,
GPOINTER_TO_INT (depth) + 1);
- g_print ("%s", desc);
- g_free (desc);
+ if (desc) {
+ g_print ("%s", desc);
+ g_free (desc);
+ }
}
}