summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Crête <olivier.crete@collabora.co.uk>2008-10-06 02:03:05 (GMT)
committerOlivier Crête <olivier.crete@collabora.co.uk>2008-10-06 17:51:36 (GMT)
commit52b260e8d8337f2a24d934dc933925edeb6d9c03 (patch)
treefaa52cf7535e51f8e13ed5b8b0ffdabba7856b32
parent620f699aac9226e4e1b919a838976a777637d61c (diff)
downloadgst-plugins-farsight-tester-52b260e8d8337f2a24d934dc933925edeb6d9c03.tar.gz
gst-plugins-farsight-tester-52b260e8d8337f2a24d934dc933925edeb6d9c03.tar.xz
Add underscore to make the encoder like the decoder
-rw-r--r--gst/siren/gstsirendec.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gst/siren/gstsirendec.c b/gst/siren/gstsirendec.c
index 97f9177..513034c 100644
--- a/gst/siren/gstsirendec.c
+++ b/gst/siren/gstsirendec.c
@@ -162,8 +162,8 @@ gst_siren_dec_chain (GstPad *pad, GstBuffer *buf)
GstSirenDec *dec = GST_SIREN_DEC (gst_pad_get_parent_element (pad));
GstFlowReturn ret = GST_FLOW_OK;
GstBuffer *decoded = NULL;
- guint inoffset = 0;
- guint outoffset = 0;
+ guint in_offset = 0;
+ guint out_offset = 0;
gint decode_ret = 0;
guint size = 0;
@@ -190,28 +190,28 @@ gst_siren_dec_chain (GstPad *pad, GstBuffer *buf)
GST_BUFFER_TIMESTAMP (decoded) = GST_BUFFER_TIMESTAMP (buf);
- while((inoffset + 40 <= GST_BUFFER_SIZE (buf)) &&
+ while((in_offset + 40 <= GST_BUFFER_SIZE (buf)) &&
ret == GST_FLOW_OK) {
GST_LOG_OBJECT (dec, "Decoding frame");
decode_ret = Siren7_DecodeFrame (dec->decoder,
- GST_BUFFER_DATA (buf) + inoffset,
- GST_BUFFER_DATA (decoded) + outoffset);
+ GST_BUFFER_DATA (buf) + in_offset,
+ GST_BUFFER_DATA (decoded) + out_offset);
if (decode_ret != 0) {
GST_ERROR_OBJECT (dec, "Siren7_DecodeFrame returned %d", decode_ret);
ret = GST_FLOW_ERROR;
}
- inoffset += 40;
- outoffset += 640;
+ in_offset += 40;
+ out_offset += 640;
}
- GST_LOG_OBJECT (dec, "Finished decoding : %d", outoffset);
- if (outoffset != GST_BUFFER_SIZE (decoded)) {
+ GST_LOG_OBJECT (dec, "Finished decoding : %d", out_offset);
+ if (out_offset != GST_BUFFER_SIZE (decoded)) {
GST_ERROR_OBJECT (dec,
"didn't decode enough : offfset (%d) != BUFFER_SIZE (%d)",
- outoffset, GST_BUFFER_SIZE (decoded));
+ out_offset, GST_BUFFER_SIZE (decoded));
return GST_FLOW_ERROR;
}