summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/applemedia/corevideobuffer.c1
-rw-r--r--sys/applemedia/vtdec.c1
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)) {