From 463d474f4d750066a620fedabd83b70462df56cb Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 2 Jul 2002 08:08:42 +0000 Subject: ds's virtual patches Original commit message from CVS: ds's virtual patches --- ext/alsa/gstalsa.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/alsa/gstalsa.c b/ext/alsa/gstalsa.c index a05869ad1..413c8094a 100644 --- a/ext/alsa/gstalsa.c +++ b/ext/alsa/gstalsa.c @@ -944,9 +944,7 @@ gst_alsa_src_process (GstAlsa *this, snd_pcm_uframes_t frames) pad->offset += MIN(frames, this->period_frames - pad->offset); if (pad->offset >= this->period_frames) { - if (pad->offset > this->period_frames) - G_BREAKPOINT(); - + g_assert(pad->offset <= this->period_frames); buf = gst_buffer_new(); GST_BUFFER_DATA(buf) = pad->buf; GST_BUFFER_SIZE(buf) = this->period_frames * unit; -- cgit v1.2.1