mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
ext: Update for video base classes API changes
This commit is contained in:
parent
5f80a0b91b
commit
a20ba81f9a
1 changed files with 3 additions and 2 deletions
|
@ -330,7 +330,8 @@ gst_mpeg2dec_crop_buffer (GstMpeg2dec * dec, GstVideoCodecFrame * in_frame,
|
||||||
dinfo->size, info->width, info->height, info->size);
|
dinfo->size, info->width, info->height, info->size);
|
||||||
|
|
||||||
ret =
|
ret =
|
||||||
gst_video_decoder_alloc_output_frame (GST_VIDEO_DECODER (dec), in_frame);
|
gst_video_decoder_allocate_output_frame (GST_VIDEO_DECODER (dec),
|
||||||
|
in_frame);
|
||||||
if (ret != GST_FLOW_OK)
|
if (ret != GST_FLOW_OK)
|
||||||
goto beach;
|
goto beach;
|
||||||
|
|
||||||
|
@ -396,7 +397,7 @@ gst_mpeg2dec_alloc_sized_buf (GstMpeg2dec * mpeg2dec, guint size,
|
||||||
|
|
||||||
if (!mpeg2dec->need_cropping || mpeg2dec->has_cropping) {
|
if (!mpeg2dec->need_cropping || mpeg2dec->has_cropping) {
|
||||||
ret =
|
ret =
|
||||||
gst_video_decoder_alloc_output_frame (GST_VIDEO_DECODER (mpeg2dec),
|
gst_video_decoder_allocate_output_frame (GST_VIDEO_DECODER (mpeg2dec),
|
||||||
frame);
|
frame);
|
||||||
*buffer = frame->output_buffer;
|
*buffer = frame->output_buffer;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue