From 7c4b0049b2c172339c47c60d3ffdc1fc0a57554a Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Wed, 15 May 2002 18:55:35 +0000 Subject: [PATCH] use new bytestream api Original commit message from CVS: use new bytestream api --- ext/alsa/gstalsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/alsa/gstalsa.c b/ext/alsa/gstalsa.c index 3aa8169c57..45bc9ccec1 100644 --- a/ext/alsa/gstalsa.c +++ b/ext/alsa/gstalsa.c @@ -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");