h264parse: extract structure from correct caps

... which are known != NULL.
This commit is contained in:
Mark Nauwelaerts 2012-10-25 18:02:23 +02:00
parent 821c8519e0
commit 58441bf262

View file

@ -1121,7 +1121,7 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps)
if (!sink_caps) if (!sink_caps)
sink_caps = gst_caps_new_empty_simple ("video/x-h264"); sink_caps = gst_caps_new_empty_simple ("video/x-h264");
else else
s = gst_caps_get_structure (caps, 0); s = gst_caps_get_structure (sink_caps, 0);
sps = h264parse->nalparser->last_sps; sps = h264parse->nalparser->last_sps;
GST_DEBUG_OBJECT (h264parse, "sps: %p", sps); GST_DEBUG_OBJECT (h264parse, "sps: %p", sps);