diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2019-03-06 17:33:23 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2019-03-12 11:53:46 +0100 |
commit | 61a9b13942cd7cf43ff17cf13d10da0d68f0608e (patch) | |
tree | ac412467858cc1a9ecdba44a57f16cd70a4eb9fc | |
parent | ce76977ee664406aa0d355c644a6ea85c60aa947 (diff) | |
download | gstreamer-plugins-good-61a9b13942cd7cf43ff17cf13d10da0d68f0608e.tar.gz |
rtph264depay: fix caps leak
Exposed by rtp_h264depay_bytestream() unit test.
-rw-r--r-- | gst/rtp/gstrtph264depay.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c index 6ce38205c..ff34c3c81 100644 --- a/gst/rtp/gstrtph264depay.c +++ b/gst/rtp/gstrtph264depay.c @@ -451,6 +451,7 @@ gst_rtp_h264_set_src_caps (GstRtpH264Depay * rtph264depay) res = gst_rtp_h264_depay_set_output_caps (rtph264depay, srccaps); } + gst_caps_replace (&old_caps, NULL); gst_caps_unref (srccaps); /* Insert SPS and PPS into the stream on next opportunity (if bytestream) */ |