ext/vorbis/vorbisenc.c: GST_PAD_IS_USABLE is gone, use the return value of the push or pad_alloc_buffer instead.

Original commit message from CVS:
* ext/vorbis/vorbisenc.c: (gst_vorbisenc_push_buffer),
(gst_vorbisenc_push_packet):
GST_PAD_IS_USABLE is gone, use the return value of
the push or pad_alloc_buffer instead.
This commit is contained in:
Wim Taymans 2005-11-20 14:09:40 +00:00
parent 9e0446f03e
commit 679918cbf6
2 changed files with 11 additions and 8 deletions

View file

@ -1,3 +1,10 @@
2005-11-20 Wim Taymans <wim@fluendo.com>
* ext/vorbis/vorbisenc.c: (gst_vorbisenc_push_buffer),
(gst_vorbisenc_push_packet):
GST_PAD_IS_USABLE is gone, use the return value of
the push or pad_alloc_buffer instead.
2005-11-18 Julien MOUTTE <julien@moutte.net>
* sys/ximage/ximagesink.c: (gst_ximage_buffer_finalize),

View file

@ -819,25 +819,21 @@ gst_vorbisenc_buffer_from_packet (GstVorbisEnc * vorbisenc, ogg_packet * packet)
}
/* push out the buffer and do internal bookkeeping */
static void
static GstFlowReturn
gst_vorbisenc_push_buffer (GstVorbisEnc * vorbisenc, GstBuffer * buffer)
{
vorbisenc->bytes_out += GST_BUFFER_SIZE (buffer);
if (GST_PAD_IS_USABLE (vorbisenc->srcpad)) {
gst_pad_push (vorbisenc->srcpad, buffer);
} else {
gst_buffer_unref (buffer);
}
return gst_pad_push (vorbisenc->srcpad, buffer);
}
static void
static GstFlowReturn
gst_vorbisenc_push_packet (GstVorbisEnc * vorbisenc, ogg_packet * packet)
{
GstBuffer *outbuf;
outbuf = gst_vorbisenc_buffer_from_packet (vorbisenc, packet);
gst_vorbisenc_push_buffer (vorbisenc, outbuf);
return gst_vorbisenc_push_buffer (vorbisenc, outbuf);
}
static GstCaps *