EOS and multiqueue?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

EOS and multiqueue?

Thomas Loewe
Hi,

i was wondering that my app can't receive EOS messages anymore after switching from queue to multiqueue.

As i understand the multiqueue element "eats" the EOS and i've to connect an underrun signal handler instead listening for EOS messages on the bus.

Is that the right way to detect the end of the stream in a multiqueue pipeline?

If so is this ok:

void FakeEOS(GstElement *multiqueue, gpointer user_data)
{
        if(GST_STATE(pipeline) == GST_STATE_PLAYING)
        {
                gst_bus_post(gst_pipeline_get_bus(GST_PIPELINE(pipeline)), gst_message_new_eos(GST_OBJECT(source)));
        }
}

Thank you,
Thomas