GNOME Bugzilla – Bug 704241
souphttpsrc: Ignore all HEAD errors
Last modified: 2013-07-25 16:02:06 UTC
Created attachment 249185 [details] [review] Always ignore HEAD errors souphttpsrc now does a HEAD request at start which prevents playback with servers that do not support this method (ie a 405 http error is returned). I've attached a sample log. The solution is to always ignore HEAD errors, the attached patch does this. Also I'm not sure why the HEAD request is always needed, shouldn't it only be done when requesting if the stream is seekable in READY state ?
Created attachment 249186 [details] fail log
This should already be fixed on upstream git. *** This bug has been marked as a duplicate of bug 704053 ***
It's not, in upstream git only transport errors are ignored, not server errors (which includes 405 status code).
Wouldn't we want redirections already be handled for the HEAD request too? Otherwise this patch looks good
Arnaud?
Created attachment 250122 [details] [review] Always ignore HEAD errors I've checked, the HEAD request does handle redirection when automatic-redirect is set. I've updated the patch to not print the "Ignoring error %d during HEAD request" on success, but that's it.
commit e67655608cc14836c5ea55206787d680b6526d65 Author: Arnaud Vrac <avrac@freebox.fr> Date: Fri Jul 12 20:01:42 2013 +0200 souphttpsrc: always ignore HEAD errors https://bugzilla.gnome.org/show_bug.cgi?id=704241