projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f448cec
)
discoverer: Check return values
author
Edward Hervey
<edward@centricular.com>
Thu, 2 Nov 2017 07:04:27 +0000
(08:04 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Thu, 2 Nov 2017 07:04:27 +0000
(08:04 +0100)
The target pad of a ghostpad could have gone (due to shutdown taking
place for example). Check for it's existence before doing anything
with it.
gst-libs/gst/pbutils/gstdiscoverer.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/pbutils/gstdiscoverer.c
b/gst-libs/gst/pbutils/gstdiscoverer.c
index
0c09837
..
78b1399
100644
(file)
--- a/
gst-libs/gst/pbutils/gstdiscoverer.c
+++ b/
gst-libs/gst/pbutils/gstdiscoverer.c
@@
-1076,6
+1076,8
@@
find_stream_for_node (GstDiscoverer * dc, const GstStructure * topology)
ps = (PrivateStream *) tmp->data;
target_pad = gst_ghost_pad_get_target (GST_GHOST_PAD (ps->pad));
+ if (target_pad == NULL)
+ continue;
gst_object_unref (target_pad);
if (target_pad == pad)