[Bug 722345] directfb: video sink crashes when used with ext_surface

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jan 20 06:38:52 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=722345
  GStreamer | gst-plugins-bad | 1.2.2

--- Comment #29 from Sebastian Dröge (slomo) <slomo at coaxion.net> 2014-01-20 14:38:49 UTC ---
(In reply to comment #27)
> (In reply to comment #26)
> > You probably have to keep an additional reference of the last rendered buffer
> > in the sink, and only release it (and give it back to the pool and let it be
> > used upstream) after the next buffer is rendered.
> 
> I'm afraid I don't get it!
> Do you mean I should keep pointer to the rendered buffer and unref the n-1 one?

I meant that your render function looks like this:

render(sink, buf) {
  if (sink->last_buffer)
    gst_buffer_unref(sink->last_buffer);
  sink->last_buffer = gst_buffer_ref(buf);
  do_dfb_stuff_to_render(buf);
}

-- 
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