After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 753780 - Latency query failed from audiomixer linked to audiotestsrc
Latency query failed from audiomixer linked to audiotestsrc
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-08-18 21:53 UTC by Ben
Modified: 2016-03-09 23:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ben 2015-08-18 21:53:37 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
Comment 1 Sebastian Dröge (slomo) 2015-08-19 07:39:01 UTC
audiotestsrc has no caps configured yet, so can't know the latency yet.
Comment 2 Sebastian Dröge (slomo) 2015-08-19 07:59:22 UTC
Is this causing actual problems?
Comment 3 Ben 2015-08-19 13:33:58 UTC
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.
Comment 4 Tim-Philipp Müller 2016-03-08 17:57:38 UTC
Ben is this still an issue with latest GStreamer? (>= 1.7.90) There have been a few audiomixer fixes since then.
Comment 5 Ben 2016-03-09 07:26:42 UTC
I'm still getting the 'Latency query failed' warning with Gstreamer 1.7.90 on Ubuntu 14.04
Comment 6 Tim-Philipp Müller 2016-03-09 09:04:29 UTC
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?
Comment 7 Nicolas Dufresne (ndufresne) 2016-03-09 13:18:37 UTC
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.
Comment 8 Ben 2016-03-09 14:02:30 UTC
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.
Comment 9 Tim-Philipp Müller 2016-03-09 23:21:17 UTC
Ok, please re-open or file a new issue once you can provide a test program or debug log, thanks!