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:
a6decb9
)
buffer: don't clear TAG on NULL buffer
author
Wim Taymans
<wtaymans@redhat.com>
Mon, 24 Mar 2014 15:11:30 +0000
(16:11 +0100)
committer
Wim Taymans
<wtaymans@redhat.com>
Mon, 24 Mar 2014 15:11:30 +0000
(16:11 +0100)
When the buffer fails to copy, don't clear the TAG on the NULL pointer.
gst/gstbuffer.c
patch
|
blob
|
history
diff --git
a/gst/gstbuffer.c
b/gst/gstbuffer.c
index
008ce6a
..
019261e
100644
(file)
--- a/
gst/gstbuffer.c
+++ b/
gst/gstbuffer.c
@@
-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;
}