summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-10-25 18:02:23 +0200
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-10-25 18:02:38 +0200
commit58441bf262fea75b70504beb0187260c39bdb266 (patch)
tree02c5d550e4570e112ae7716ad7399298a8a8de84
parent821c8519e0d17728d9d80447e22e9d7db5222cea (diff)
h264parse: extract structure from correct caps
... which are known != NULL.
-rw-r--r--gst/videoparsers/gsth264parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c
index af32a7205..b70dfb727 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);