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:
113b9dc
)
adapter: use buffer_wrap
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Sat, 31 Mar 2012 16:34:23 +0000
(18:34 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Sat, 31 Mar 2012 16:34:23 +0000
(18:34 +0200)
libs/gst/base/gstadapter.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstadapter.c
b/libs/gst/base/gstadapter.c
index 382611ca4dabff9657db2e51599836079799b937..3342536860a426b634c21642af8f12289dd7d239 100644
(file)
--- a/
libs/gst/base/gstadapter.c
+++ b/
libs/gst/base/gstadapter.c
@@
-768,9
+768,7
@@
gst_adapter_take_buffer (GstAdapter * adapter, gsize nbytes)
data = gst_adapter_take_internal (adapter, nbytes);
- buffer = gst_buffer_new ();
- gst_buffer_append_memory (buffer,
- gst_memory_new_wrapped (0, data, nbytes, 0, nbytes, data, g_free));
+ buffer = gst_buffer_new_wrapped (data, nbytes);
done:
gst_adapter_flush_unchecked (adapter, nbytes);