Compare against the translated message text to determine whether a typefind failed. Fixes radio playlists in non-english languages. Fixes issue 3394

This commit is contained in:
David Sansome 2013-01-04 21:16:26 +11:00
parent efd42349e7
commit 41f89904b6
1 changed files with 2 additions and 1 deletions

View File

@ -583,7 +583,8 @@ void SongLoader::ErrorMessageReceived(GstMessage* msg) {
free(debugs);
if (state_ == WaitingForType &&
message_str == "Could not determine type of stream.") {
message_str == gst_error_get_message(
GST_STREAM_ERROR, GST_STREAM_ERROR_TYPE_NOT_FOUND)) {
// Don't give up - assume it's a playlist and see if one of our parsers can
// read it.
state_ = WaitingForMagic;