Comment 59 for bug 1200818

Revision history for this message
Colin Guthrie (launchpad-colin) wrote :

OK, so done a little more hacking... and by hackng I mean *hacking* :D

I made a really evil patch for GST that detected this specific test URL and hard-coded the caps. This patch is sufficient to make the test pass with a simple gst-launch-1.0 pipeline on the command line, but sadly this doesn't seem to be enough for Google Music and it still requires the Flash plugin.

From appropriate GST_DEBUG= values, it seems to be querying the duration. I guess it needs to validate that the duration of the decoded audio is correct to ensure the decoder is correct. Sadly I am now at a loss. GST doesn't seem able to supply the duration of the test URL and while I can hack in various values, I'm somewhat stabbing in the dark to work out what duration to try and supply to fool it.

If someone can work what duration it needs, I can maybe try it out.

Anyway, here's the horrible patch to GST to make it play the test URL OK.