gint pic_width, pic_height;
gint offset_x, offset_y;
- result = gst_video_decoder_alloc_output_frame (decoder, frame);
+ result = gst_video_decoder_allocate_output_frame (decoder, frame);
if (G_UNLIKELY (result != GST_FLOW_OK)) {
GST_DEBUG_OBJECT (dec, "could not get buffer, reason: %s",
benc = GST_VIDEO_ENCODER (enc);
frame = gst_video_encoder_get_oldest_frame (benc);
- if (gst_video_encoder_alloc_output_frame (benc, frame,
+ if (gst_video_encoder_allocate_output_frame (benc, frame,
packet->bytes) != GST_FLOW_OK) {
GST_WARNING_OBJECT (enc, "Could not allocate buffer");
gst_video_codec_frame_unref (frame);
GstBuffer *outbuf;
outbuf =
- gst_video_encoder_alloc_output_buffer (GST_VIDEO_ENCODER (enc),
+ gst_video_encoder_allocate_output_buffer (GST_VIDEO_ENCODER (enc),
packet->bytes);
gst_buffer_fill (outbuf, 0, packet->packet, packet->bytes);
GST_BUFFER_OFFSET (outbuf) = 0;