GNOME Bugzilla – Bug 445505
queue2: It does not work in pull mode with oggdemux
Last modified: 2015-03-15 13:34:05 UTC
Please describe the problem: oggdemux is not able to work on pull mode with queue2 because the duration query it sends upstream doesn't get answered. Steps to reproduce: 1. use a pipeline that links queue2 to oggdemux and set temp-location property on queue2 2. 3. Actual results: The application quits. Expected results: The application should play the stream. Does this happen every time? Yes Other information:
Created attachment 89607 [details] [review] Fixes the problem This patch will make queue2 block the query until it receives the first buffer (meaning that the upstream elements are at least paused). The query is then passed upstream and oggdemux can get the stream length.
Created attachment 89619 [details] [review] commited the wrong file on previous patch.
Based on patch by: Thiago Sousa Santos <thiagossantos at gmail dot com> * gst/playback/gstqueue2.c: (gst_queue_peer_query), (gst_queue_handle_src_query): Wait for preroll before attempting to forward a duration query upstream. Fixes #445505.