GNOME Bugzilla – Bug 761545
playbin: caps negotiation with sink is broken
Last modified: 2016-02-04 20:33:34 UTC
Created attachment 320420 [details] playbin log when failing I think patch 1.7.1-31-g844aa3e introduced a regression WRT caps negotation in playbin. I have an audio sink who can accept MPEG-4 AAC audio, but not all profiles (for example AAC-ELD is not supported). So I have the following caps template: "audio/mpeg, mpegversion = (int) { 2, 4 }, framed = (boolean) true" and a custom accept_caps function which checks the stream-format and codec_data fields, possibly rejecting some unsupported combinations. Since the commit above, a software decoder is not plugged anymore as fallback.
Created attachment 320421 [details] playbin log with 81c52aaa1 and 844aa3e6 reverted
If these two changes breaks your sink, it means that your sink reports too wide caps in the CAPS query but only accepts a subset of that in ACCEPT_CAPS. That's not allowed and also before did not lead to consistent results (e.g. put your sink into a bin with an identity element before the sink, and use that as a playbin sink. You would get exactly the same behaviour you have now). Please reopen if you disagree