mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
buffer: don't clear TAG on NULL buffer
When the buffer fails to copy, don't clear the TAG on the NULL pointer.
This commit is contained in:
parent
a6decb91ac
commit
ee348fe7cb
1 changed files with 2 additions and 1 deletions
|
@ -519,7 +519,8 @@ _gst_buffer_copy (GstBuffer * buffer)
|
|||
if (!gst_buffer_copy_into (copy, buffer, GST_BUFFER_COPY_ALL, 0, -1))
|
||||
gst_buffer_replace (©, NULL);
|
||||
|
||||
GST_BUFFER_FLAG_UNSET (copy, GST_BUFFER_FLAG_TAG_MEMORY);
|
||||
if (copy)
|
||||
GST_BUFFER_FLAG_UNSET (copy, GST_BUFFER_FLAG_TAG_MEMORY);
|
||||
|
||||
return copy;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue