GNOME Bugzilla – Bug 753780
Latency query failed from audiomixer linked to audiotestsrc
Last modified: 2016-03-09 23:21:17 UTC
Reproduced with this pipeline: export GST_DEBUG=*:2 && gst-launch-1.0 audiotestsrc ! audiomixer ! fakesink Setting pipeline to PAUSED ... Pipeline is PREROLLING ... 0:00:00.034635121 12952 0x9d2d90 WARN aggregator gstaggregator.c:1366:gst_aggregator_query_latency_unlocked:<audiomixer0> Latency query failed Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock Same issue happens with videotestsrc and compositor: gst-launch-1.0 videotestsrc ! compositor ! fakesink
audiotestsrc has no caps configured yet, so can't know the latency yet.
Is this causing actual problems?
In my app I can hear audio only when setting latency of 1 second on audiomixer and compositor and the latency query failure was the only thing that might be related. I'm not sure if that can cause issues.
Ben is this still an issue with latest GStreamer? (>= 1.7.90) There have been a few audiomixer fixes since then.
I'm still getting the 'Latency query failed' warning with Gstreamer 1.7.90 on Ubuntu 14.04
The warning itself is not a problem. The real problem is the 'I can hear audio only when setting latency of 1 second on audiomixer and compositor'. The question is how do we reproduce this? Do you have a sample app or gst-launch pipeline you can share? If note, could you provide a GST_DEBUG=*:6 log of the first few seconds?
I confirm the warning is inoffensive. The latency query is run at multiple places, the first place most often fails as it's too early, but is needed for certain scenarios to work.
My app is complex. I just set the latency to 1 second to workaround it. I'll try to create a simple test case or share GST_DEBUG log and create a new issue. Feel free to close this if the warning is not a problem.
Ok, please re-open or file a new issue once you can provide a test program or debug log, thanks!