summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-04-22 08:18:05 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-04-22 08:18:05 +0000
commitc64da4164b4aceb2a5744162dcc60d5173a205c5 (patch)
tree4c26ddc124279e17c61f2c38a716c53ca90d779e /gst
parent2344f4bb0ccd8674b85c09cacdd81f26516e28b7 (diff)
downloadgst-plugins-bad-c64da4164b4aceb2a5744162dcc60d5173a205c5.tar.gz
gst-plugins-bad-c64da4164b4aceb2a5744162dcc60d5173a205c5.tar.bz2
gst-plugins-bad-c64da4164b4aceb2a5744162dcc60d5173a205c5.zip
gst/sdp/gstsdpdemux.c: Ref caps, see #528245.
Original commit message from CVS: * gst/sdp/gstsdpdemux.c: (request_pt_map): Ref caps, see #528245.
Diffstat (limited to 'gst')
-rw-r--r--gst/sdp/gstsdpdemux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c
index f73ed4c0..b0de0d20 100644
--- a/gst/sdp/gstsdpdemux.c
+++ b/gst/sdp/gstsdpdemux.c
@@ -766,6 +766,8 @@ request_pt_map (GstElement * sess, guint session, guint pt, GstSDPDemux * demux)
goto unknown_stream;
caps = stream->caps;
+ if (caps)
+ gst_caps_ref (caps);
GST_SDP_STREAM_UNLOCK (demux);
return caps;