summaryrefslogtreecommitdiff
path: root/gst/siren
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2008-10-05 22:00:27 -0400
committerEdward Hervey <bilboed@bilboed.com>2009-02-17 19:29:40 +0100
commit72c979d84b18debe7b9d678bc975ad5e777ca6c6 (patch)
tree3acfd2beab162db6a71d4cceca614b73d8448939 /gst/siren
parenta67aa17c6d0fbd0b6dcb9db99a2e0f82e2af672f (diff)
[MOVED FROM GST-P-FARSIGHT] Check the size of the input buffer, not the output buffer
Diffstat (limited to 'gst/siren')
-rw-r--r--gst/siren/gstsirendec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/siren/gstsirendec.c b/gst/siren/gstsirendec.c
index 3b66c5d4b..97f91778e 100644
--- a/gst/siren/gstsirendec.c
+++ b/gst/siren/gstsirendec.c
@@ -179,7 +179,7 @@ gst_siren_dec_chain (GstPad *pad, GstBuffer *buf)
return GST_FLOW_OK;
}
- if (size % 40 != 0)
+ if (GST_BUFFER_SIZE (buf) % 40 != 0)
GST_LOG_OBJECT (dec, "Got buffer with size not a multiple for frame size,"
" ignoring last %u bytes", GST_BUFFER_SIZE (buf) % 40);