diff options
author | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2008-10-05 22:01:44 -0400 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-17 19:29:40 +0100 |
commit | 4d3e6501d946109dbf7e9a5303b037b267717fa7 (patch) | |
tree | d7dd9e531d964c67a6ee3172ccb3bae044dc3e1b /gst | |
parent | 72c979d84b18debe7b9d678bc975ad5e777ca6c6 (diff) | |
download | gst-plugins-bad-4d3e6501d946109dbf7e9a5303b037b267717fa7.tar.gz gst-plugins-bad-4d3e6501d946109dbf7e9a5303b037b267717fa7.tar.bz2 gst-plugins-bad-4d3e6501d946109dbf7e9a5303b037b267717fa7.zip |
[MOVED FROM GST-P-FARSIGHT] Rename offset to out_offset to make its meaning clearer
Diffstat (limited to 'gst')
-rw-r--r-- | gst/siren/gstsirenenc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/siren/gstsirenenc.c b/gst/siren/gstsirenenc.c index cd0f274a..db26eb0f 100644 --- a/gst/siren/gstsirenenc.c +++ b/gst/siren/gstsirenenc.c @@ -175,7 +175,7 @@ gst_siren_enc_chain (GstPad *pad, GstBuffer *buf) GstFlowReturn ret = GST_FLOW_OK; GstBuffer *encoded = NULL; guint8 *data = NULL; - gint offset = 0; + gint out_offset = 0; gint encode_ret = 0; gint size = 0; guint in_offset = 0; @@ -206,12 +206,12 @@ gst_siren_enc_chain (GstPad *pad, GstBuffer *buf) if (ret != GST_FLOW_OK) goto out; - while (offset < size && ret == GST_FLOW_OK) { + while (out_offset < size && ret == GST_FLOW_OK) { GST_LOG_OBJECT (enc, "Encoding frame"); encode_ret = Siren7_EncodeFrame (enc->encoder, data + in_offset, - GST_BUFFER_DATA (encoded) + offset); + GST_BUFFER_DATA (encoded) + out_offset); if (encode_ret != 0) { GST_ERROR_OBJECT (enc, "Siren7_EncodeFrame returned %d", encode_ret); ret = GST_FLOW_ERROR; @@ -219,11 +219,11 @@ gst_siren_enc_chain (GstPad *pad, GstBuffer *buf) goto out; } - offset += 40; + out_offset += 40; in_offset += 640; } - GST_LOG_OBJECT (enc, "Finished encoding : %d", offset); + GST_LOG_OBJECT (enc, "Finished encoding : %d", out_offset); ret = gst_pad_push (enc->srcpad, encoded); |