From 20ffe99cc7157cbe23a398ffd1172adc781a6e3e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 9 Feb 2012 14:42:23 +0100 Subject: [PATCH] h264parse: fix refcount error --- gst/videoparsers/gsth264parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 3113094..bb9a93c 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -995,7 +995,7 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps) /* if this is being called from the first _setcaps call, caps on the sinkpad * aren't set yet and so they need to be passed as an argument */ if (caps) - sink_caps = caps; + sink_caps = gst_caps_ref (caps); else sink_caps = gst_pad_get_current_caps (GST_BASE_PARSE_SINK_PAD (h264parse)); -- 2.7.4