projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd36d2
)
rtpmux: protect against NULL caps
author
Havard Graff
<havard.graff@gmail.com>
Wed, 4 May 2016 09:48:04 +0000
(11:48 +0200)
committer
Olivier CrĂȘte
<olivier.crete@collabora.com>
Wed, 10 Oct 2018 19:35:31 +0000
(15:35 -0400)
Due to state-changes deactivating the pad from another thread,
this can happen.
https://bugzilla.gnome.org/show_bug.cgi?id=795162
gst/rtpmanager/gstrtpmux.c
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/gstrtpmux.c
b/gst/rtpmanager/gstrtpmux.c
index
b79a5cf
..
1841b97
100644
(file)
--- a/
gst/rtpmanager/gstrtpmux.c
+++ b/
gst/rtpmanager/gstrtpmux.c
@@
-602,6
+602,9
@@
gst_rtp_mux_setcaps (GstPad * pad, GstRTPMux * rtp_mux, GstCaps * caps)
GstRTPMuxPadPrivate *padpriv;
GstCaps *peercaps;
+ if (caps == NULL)
+ return FALSE;
+
if (!gst_caps_is_fixed (caps))
return FALSE;