diff options
-rw-r--r-- | gst/rtp/gstrtpmp4vdepay.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpmp4vdepay.c b/gst/rtp/gstrtpmp4vdepay.c index 04a144254..c1c911afe 100644 --- a/gst/rtp/gstrtpmp4vdepay.c +++ b/gst/rtp/gstrtpmp4vdepay.c @@ -152,11 +152,10 @@ gst_rtp_mp4v_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps) GstBuffer *buffer; buffer = gst_value_get_buffer (&v); - gst_buffer_ref (buffer); - g_value_unset (&v); - gst_caps_set_simple (srccaps, "codec_data", GST_TYPE_BUFFER, buffer, NULL); + /* caps takes ref */ + g_value_unset (&v); } else { g_warning ("cannot convert config to buffer"); } |