From c64da4164b4aceb2a5744162dcc60d5173a205c5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 22 Apr 2008 08:18:05 +0000 Subject: gst/sdp/gstsdpdemux.c: Ref caps, see #528245. Original commit message from CVS: * gst/sdp/gstsdpdemux.c: (request_pt_map): Ref caps, see #528245. --- ChangeLog | 5 +++++ gst/sdp/gstsdpdemux.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index b7ef1028..f8fce444 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-22 Wim Taymans + + * gst/sdp/gstsdpdemux.c: (request_pt_map): + Ref caps, see #528245. + 2008-04-22 Jan Schmidt * configure.ac: 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; -- cgit v1.2.1