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:
a5752d8
)
discoverer: Don't ref a NULL caps
author
Edward Hervey
<bilboed@bilboed.com>
Sun, 24 Oct 2010 13:38:30 +0000
(15:38 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Sun, 24 Oct 2010 14:19:09 +0000
(16:19 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=632988
gst-libs/gst/pbutils/gstdiscoverer-types.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/pbutils/gstdiscoverer-types.c
b/gst-libs/gst/pbutils/gstdiscoverer-types.c
index b4c51c37a0b10e7b6eb5d08c25c0dcb24d0f14e7..b7c978ca6e708c943a82813af767dd9b1585c906 100644
(file)
--- a/
gst-libs/gst/pbutils/gstdiscoverer-types.c
+++ b/
gst-libs/gst/pbutils/gstdiscoverer-types.c
@@
-539,7
+539,9
@@
gst_discoverer_stream_info_get_caps (GstDiscovererStreamInfo * info)
{
g_return_val_if_fail (GST_IS_DISCOVERER_STREAM_INFO (info), NULL);
- return gst_caps_ref (info->caps);
+ if (info->caps)
+ return gst_caps_ref (info->caps);
+ return NULL;
}
/**