mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
use new bytestream api
Original commit message from CVS: use new bytestream api
This commit is contained in:
parent
5a57581bed
commit
7c4b0049b2
1 changed files with 2 additions and 2 deletions
|
@ -960,7 +960,7 @@ gst_alsa_sink_process (GstAlsa *this, snd_pcm_uframes_t frames)
|
|||
if (!GST_ALSA_PAD(this->pads)->bs)
|
||||
GST_ALSA_PAD(this->pads)->bs = gst_bytestream_new(GST_ALSA_PAD(this->pads)->pad);
|
||||
|
||||
if (!(peeked = gst_bytestream_peek_bytes(GST_ALSA_PAD(this->pads)->bs, frames))) {
|
||||
if (gst_bytestream_peek_bytes(GST_ALSA_PAD(this->pads)->bs, &peeked, frames) != frames) {
|
||||
g_warning("initial pull on pad %s returned NULL", GST_OBJECT_NAME(GST_ALSA_PAD(this->pads)->pad));
|
||||
gst_element_set_state(GST_ELEMENT(this), GST_STATE_PAUSED);
|
||||
return FALSE;
|
||||
|
@ -979,7 +979,7 @@ gst_alsa_sink_process (GstAlsa *this, snd_pcm_uframes_t frames)
|
|||
if (!GST_ALSA_PAD(this->pads)->bs)
|
||||
GST_ALSA_PAD(this->pads)->bs = gst_bytestream_new(GST_ALSA_PAD(this->pads)->pad);
|
||||
|
||||
if (!(peeked = gst_bytestream_peek_bytes(GST_ALSA_PAD(this->pads)->bs, len))) {
|
||||
if (gst_bytestream_peek_bytes(GST_ALSA_PAD(this->pads)->bs, &peeked, len) != len) {
|
||||
gst_bytestream_get_status(GST_ALSA_PAD(this->pads)->bs, &avail, &event);
|
||||
if (event) {
|
||||
g_warning("got an event on alsasink");
|
||||
|
|
Loading…
Reference in a new issue