[Bug 794794] rtpssrcdemux: add the support of buffer list

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Mar 29 09:34:19 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=794794

--- Comment #2 from Eloi BAIL <eloi.bail at savoirfairelinux.com> ---
I have a test case:
appsrc->rtpssrcdemux->queue0->fakesink0

If I use buffer list in appsrc rather than single buffers, I notice a leak.

Here is the way I am handling buffers in my app:

----
         gst_buf = gst_buffer_new_and_alloc (packet_datalen);                   
         gst_buffer_map (gst_buf, &gst_map, GST_MAP_WRITE);                     
         memcpy (gst_map.data, ptr_packet, packet_datalen);     
         gst_buffer_unmap (gst_buf, &gst_map);                                  

         if (gst_buf_list == NULL)                                              
             gst_buf_list = gst_buffer_list_new();

         gst_buffer_list_add(gst_buf_list, gst_buf);                            

         if (gst_buffer_list_length(gst_buf_list) >= BUF_LIST_MAX)) {           
             gst_app_src_push_buffer_list (
                  (GstAppSrc*)data.source, gst_buf_list);
             gst_buf_list = NULL;                                               
         }                                                                      
----

Even with BUF_LIST_MAX to 1, I notice a leak.
When gst_app_src_push_buffer_list is called, the ownership of the list is
taken. So I am wondering what is wrong.

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