mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
adapter: remove dead assignment.
The value set to to_copy at that line is never used, and is overwritten further down before being read.
This commit is contained in:
parent
f68573dc42
commit
471bd93af5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue