From aa21a162d73452f85ffb7ce6cd0bd425de452105 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 23 Jul 2012 10:19:16 +0200 Subject: [PATCH] theora: Update for video base classes API changes --- ext/theora/gsttheoradec.c | 2 +- ext/theora/gsttheoraenc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c index 0f0aea5..f07530a 100644 --- a/ext/theora/gsttheoradec.c +++ b/ext/theora/gsttheoradec.c @@ -578,7 +578,7 @@ theora_handle_image (GstTheoraDec * dec, th_ycbcr_buffer buf, 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", diff --git a/ext/theora/gsttheoraenc.c b/ext/theora/gsttheoraenc.c index 8925f20..7485e4f 100644 --- a/ext/theora/gsttheoraenc.c +++ b/ext/theora/gsttheoraenc.c @@ -625,7 +625,7 @@ theora_push_packet (GstTheoraEnc * enc, ogg_packet * packet) 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); @@ -837,7 +837,7 @@ theora_enc_buffer_from_header_packet (GstTheoraEnc * enc, ogg_packet * packet) 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; -- 2.7.4