GstQueue "half full" signal?

gotsring gotsring at live.com
Thu Jan 7 16:03:09 UTC 2021


You can just add a pad probe to the queue's sink pad that triggers every time
a buffer passes into the queue. Within the callback, you can check
current-level-bytes and current-level-buffers and go from there.

Something like

// Callback function
static GstPadProbeReturn check_queue_levels_cb(GstPad* pad, GstPadProbeInfo
*info, gpointer data)
{
    // Do stuff
    return GST_PAD_PROBE_OK;
}


// Link callback to queue pad
GstPad* queue_sink_pad = gst_element_get_static_pad(queue_element, "sink");
gst_pad_add_probe(queue_sink_pad, GST_PAD_PROBE_TYPE_BUFFER,
check_queue_levels_cb, userdata, NULL);





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list