mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
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:
parent
9e0446f03e
commit
679918cbf6
2 changed files with 11 additions and 8 deletions
|
@ -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>
|
2005-11-18 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
* sys/ximage/ximagesink.c: (gst_ximage_buffer_finalize),
|
* sys/ximage/ximagesink.c: (gst_ximage_buffer_finalize),
|
||||||
|
|
|
@ -819,25 +819,21 @@ gst_vorbisenc_buffer_from_packet (GstVorbisEnc * vorbisenc, ogg_packet * packet)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* push out the buffer and do internal bookkeeping */
|
/* push out the buffer and do internal bookkeeping */
|
||||||
static void
|
static GstFlowReturn
|
||||||
gst_vorbisenc_push_buffer (GstVorbisEnc * vorbisenc, GstBuffer * buffer)
|
gst_vorbisenc_push_buffer (GstVorbisEnc * vorbisenc, GstBuffer * buffer)
|
||||||
{
|
{
|
||||||
vorbisenc->bytes_out += GST_BUFFER_SIZE (buffer);
|
vorbisenc->bytes_out += GST_BUFFER_SIZE (buffer);
|
||||||
|
|
||||||
if (GST_PAD_IS_USABLE (vorbisenc->srcpad)) {
|
return gst_pad_push (vorbisenc->srcpad, buffer);
|
||||||
gst_pad_push (vorbisenc->srcpad, buffer);
|
|
||||||
} else {
|
|
||||||
gst_buffer_unref (buffer);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static GstFlowReturn
|
||||||
gst_vorbisenc_push_packet (GstVorbisEnc * vorbisenc, ogg_packet * packet)
|
gst_vorbisenc_push_packet (GstVorbisEnc * vorbisenc, ogg_packet * packet)
|
||||||
{
|
{
|
||||||
GstBuffer *outbuf;
|
GstBuffer *outbuf;
|
||||||
|
|
||||||
outbuf = gst_vorbisenc_buffer_from_packet (vorbisenc, packet);
|
outbuf = gst_vorbisenc_buffer_from_packet (vorbisenc, packet);
|
||||||
gst_vorbisenc_push_buffer (vorbisenc, outbuf);
|
return gst_vorbisenc_push_buffer (vorbisenc, outbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstCaps *
|
static GstCaps *
|
||||||
|
|
Loading…
Reference in a new issue