applemedia: vtenc: fix build on iOS

This commit is contained in:
Alessandro Decina 2016-01-19 19:18:43 +11:00
parent f6154b4cc0
commit 5c7fb644cd

View file

@ -1112,8 +1112,7 @@ gst_vtenc_encode_frame (GstVTEnc * self, GstVideoCodecFrame * frame)
goto cv_error; goto cv_error;
} }
outbuf = outbuf = gst_core_video_buffer_new ((CVBufferRef) pbuf, &self->video_info);
gst_core_video_buffer_new ((CVBufferRef) pbuf, &self->video_info, TRUE);
if (!gst_video_frame_map (&outframe, &self->video_info, outbuf, if (!gst_video_frame_map (&outframe, &self->video_info, outbuf,
GST_MAP_WRITE)) { GST_MAP_WRITE)) {
gst_video_frame_unmap (&inframe); gst_video_frame_unmap (&inframe);