[Bug 739693] assrender doesn't render frames into given memory area

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Nov 6 00:25:34 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=739693
  GStreamer | gst-plugins-base | git

--- Comment #4 from Andreas Frisch <fraxinas at opendreambox.org> 2014-11-06 08:25:29 UTC ---
I basically get a pre-allocated dma pointer from my application which i then
wish to render the subtitles to.
therefore, in my gstreamer element i create a new buffer with this memory area,
memset an empty bitmap there and push it into assrender (via subtitleoverlay).
it arrives there, correctly (i was tracking that by multiple debug outputs) and
changes after the gst_video_frame_map call.

this is how i create the buffer. gdi_data is my fixed pointer:
nv12frame = gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS,
gdi_data, size, 0, size, NULL, NULL);

i display the pointer of the buffer's data using the three lines

GstMapInfo map;
gst_buffer_map(buffer, &map, GST_MAP_READ);
GST_INFO_OBJECT (buffer, "....... data@%p refcount=%i", map.data,
GST_OBJECT_REFCOUNT_VALUE(buffer));
gst_buffer_unmap(buffer, &map);

there's probably a cleverer way how to do it though.

it shows that during gst_video_frame_map, the refcount is increased from 1 to 2
and the flags and the pointer changes.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list