diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-09-18 13:17:55 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-09-18 13:19:37 +0200 |
commit | 9cb0cc216df9e828b1670aa4a2c8af33e6f7d85c (patch) | |
tree | fa3cd978cebf63cd7ca7dbdd5892167aea1f4dc9 /sys/applemedia | |
parent | 7cf43c7b93360192a657893eeccd575ee125f599 (diff) | |
download | gstreamer-plugins-bad-9cb0cc216df9e828b1670aa4a2c8af33e6f7d85c.tar.gz |
applemedia: init videoinfo
Diffstat (limited to 'sys/applemedia')
-rw-r--r-- | sys/applemedia/corevideobuffer.c | 1 | ||||
-rw-r--r-- | sys/applemedia/vtdec.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/applemedia/corevideobuffer.c b/sys/applemedia/corevideobuffer.c index 67ed5d8cb..a45c3f61b 100644 --- a/sys/applemedia/corevideobuffer.c +++ b/sys/applemedia/corevideobuffer.c @@ -109,6 +109,7 @@ gst_core_video_buffer_new (GstCoreMediaCtx * ctx, CVBufferRef cvbuf, stride[i] = cv->CVPixelBufferGetBytesPerRowOfPlane (pixbuf, i); /* FIXME: don't hardcode NV12 */ + gst_video_info_init (&tmp_vinfo); gst_video_info_set_format (&tmp_vinfo, GST_VIDEO_FORMAT_NV12, stride[0], height); offset[1] = tmp_vinfo.offset[1]; diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c index 6ddf7fbb3..1533f4a2c 100644 --- a/sys/applemedia/vtdec.c +++ b/sys/applemedia/vtdec.c @@ -219,6 +219,7 @@ gst_vtdec_sink_setcaps (GstVTDec * self, GstCaps * caps) if (!gst_structure_get_int (structure, "height", &height)) goto incomplete_caps; + gst_video_info_init (&self->vinfo); gst_video_info_set_format (&self->vinfo, format, width, height); if (gst_structure_get_fraction (structure, "framerate", &fps_n, &fps_d)) { |