diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2013-05-01 17:17:50 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2013-05-01 17:17:50 +0100 |
commit | a5f32013486cc88d1bcc1bebe178111a600fbc76 (patch) | |
tree | c9dc5532eef9159f8d957725cf36fd688ec414ba | |
parent | fb0d8700e71c4a6569ba023d16201087aec119fd (diff) | |
download | gstreamer-plugins-bad-a5f32013486cc88d1bcc1bebe178111a600fbc76.tar.gz |
mpegvideoparse: fix caps refcounting issue
Fix caps refcounting issue which was introduced by wrong conflict
resolution in commit 41ecfcd429d45f47378f8e9e3c201dd2af6abb9d
when cherry-picking from master.
https://bugzilla.gnome.org/show_bug.cgi?id=660866
-rw-r--r-- | gst/videoparsers/gstmpegvideoparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index 2f4607553..8743c7cbe 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -594,7 +594,7 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse) /* carry over input caps as much as possible; override with our own stuff */ caps = GST_PAD_CAPS (GST_BASE_PARSE_SINK_PAD (mpvparse)); if (caps) { - caps = gst_caps_make_writable (caps); + caps = gst_caps_copy (caps); s = gst_caps_get_structure (caps, 0); } else { caps = gst_caps_new_simple ("video/mpeg", NULL); |