From 58441bf262fea75b70504beb0187260c39bdb266 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 25 Oct 2012 18:02:23 +0200 Subject: [PATCH] h264parse: extract structure from correct caps ... which are known != NULL. --- 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 af32a7205f..b70dfb727a 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -1121,7 +1121,7 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps) if (!sink_caps) sink_caps = gst_caps_new_empty_simple ("video/x-h264"); else - s = gst_caps_get_structure (caps, 0); + s = gst_caps_get_structure (sink_caps, 0); sps = h264parse->nalparser->last_sps; GST_DEBUG_OBJECT (h264parse, "sps: %p", sps);