[gstreamer-bugs] [Bug 321662] New: reenable our get_buffer function in gst-ffmpeg

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Nov 16 14:49:29 PST 2005


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=321662
 GStreamer | gst-ffmpeg | Ver: HEAD CVS

           Summary: reenable our get_buffer function in gst-ffmpeg
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-ffmpeg
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: luogni at tin.it
         QAContact: gstreamer-bugs at lists.sourceforge.net
                CC: all-bugs at bugzilla.gnome.org


When seeking in a pipeline using ffdec_* elements it can happens an error like:
(lt-totem:7911): GLib-GObject-WARNING **: invalid uninstantiatable type
`<invalid>' in cast to `GstMiniObject'
and some segfaults. I've tried to fix it but my fix doesn't really works..

Some info:
 - a buffer is allocated in _get_buffer. The buffer exits this function with a
ref count of 2.
 - a buffer is deallocated in _release_buffer and in _frame. It can also be
deallocated when another element unrefs it. _release_buffer is called when we
call avcodec_decode_video or avcodec_flush_buffers. 

So, every buffer has a refcount of 2 when it's created using our _geT_buffer
function. Every buffer should also be unreffed exactly two times :) 
This is not the case right now so i've disabled our _get_buffer function
(ffdec_* elements will use more cpu but they should work fine).

------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list