projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f68573d
)
adapter: remove dead assignment.
author
Edward Hervey
<bilboed@bilboed.com>
Fri, 3 Apr 2009 10:19:40 +0000
(12:19 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Fri, 3 Apr 2009 10:57:24 +0000
(12:57 +0200)
The value set to to_copy at that line is never used, and is overwritten
further down before being read.
libs/gst/base/gstadapter.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstadapter.c
b/libs/gst/base/gstadapter.c
index
35b1d53
..
58c280d
100644
(file)
--- a/
libs/gst/base/gstadapter.c
+++ b/
libs/gst/base/gstadapter.c
@@
-239,7
+239,7
@@
gst_adapter_peek_into (GstAdapter * adapter, guint8 * data, guint size)
/* The first buffer might be partly consumed, so need to handle
* 'skipped' bytes. */
cur = adapter->buflist->data;
- copied =
to_copy =
MIN (GST_BUFFER_SIZE (cur) - adapter->skip, size);
+ copied = MIN (GST_BUFFER_SIZE (cur) - adapter->skip, size);
memcpy (data, GST_BUFFER_DATA (cur) + adapter->skip, copied);
data += copied;