summaryrefslogtreecommitdiffstats
path: root/gst/audioresample/resample_ref.c
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2005-08-25 15:44:58 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2005-08-25 15:44:58 +0000
commit3d95afd88998b3aa8d26fbf5252ff7cbb46900da (patch)
tree005adc447f26e3672ad34aa4c192216be27287a0 /gst/audioresample/resample_ref.c
parentdcf4df2a026e73eb67b9c94208250fd1261d6bca (diff)
downloadgst-plugins-bad-3d95afd88998b3aa8d26fbf5252ff7cbb46900da.tar.gz
gst-plugins-bad-3d95afd88998b3aa8d26fbf5252ff7cbb46900da.tar.bz2
gst-plugins-bad-3d95afd88998b3aa8d26fbf5252ff7cbb46900da.zip
add a check for audioresample
Original commit message from CVS: add a check for audioresample
Diffstat (limited to 'gst/audioresample/resample_ref.c')
-rw-r--r--gst/audioresample/resample_ref.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/audioresample/resample_ref.c b/gst/audioresample/resample_ref.c
index 187f72c4..4cb3d250 100644
--- a/gst/audioresample/resample_ref.c
+++ b/gst/audioresample/resample_ref.c
@@ -111,6 +111,9 @@ resample_scale_ref (ResampleState * r)
-0.5 * r->i_inc, r->i_inc);
buffer = audioresample_buffer_queue_pull (r->queue, r->sample_size);
if (buffer == NULL) {
+ /* FIXME: for the first buffer, this isn't necessarily an error,
+ * since because of the filter length we'll output less buffers.
+ * deal with that so we don't print to console */
RESAMPLE_ERROR ("buffer_queue_pull returned NULL");
return;
}