Skip Menu |

This queue is for tickets about the GStreamer CPAN distribution.

Report information
The Basics
Id: 82826
Status: resolved
Priority: 0/
Queue: GStreamer

People
Owner: Nobody in particular
Requestors: toapole [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.17
Fixed in: (no value)



Subject: buffer memory pointer
Hello It will be good to have "data_ptr" method in gstreamer buffer object in order to avoid memory copying. best regards
Subject: data_ptr.diff
diff --git a/xs/GstBuffer.xs b/xs/GstBuffer.xs index 10e20c5..4f77a45 100644 --- a/xs/GstBuffer.xs +++ b/xs/GstBuffer.xs @@ -41,6 +41,14 @@ data (buffer) OUTPUT: RETVAL +void * +data_ptr (buffer) + GstBuffer *buffer + CODE: + RETVAL = GST_BUFFER_DATA (buffer); + OUTPUT: + RETVAL + guint size (buffer) GstBuffer *buffer
Sorry for not getting back to you earlier. On Sat Jan 19 16:08:57 2013, egor wrote: Show quoted text
> It will be good to have "data_ptr" method in gstreamer buffer object in > order to avoid memory copying.
Makes sense, patch looks good. Committed with some tests: <http://git.gnome.org/browse/perl-GStreamer/commit/?id=bba112559a77ea3dc89c26b947892143184b6f9d>. Thanks.