X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=share%2Flua%2Fplaylist%2Fdailymotion.lua;h=f334cd21dbedfef8fbaefa1165b074046012514c;hb=1c55fa94d2fe41dd8f42f12c0eec5de329a7a54b;hp=2cbae59842b3b20dc67136cf30923177871feb62;hpb=289a05e62b4b972628f8dbaa7199a6887b59ef0d;p=vlc diff --git a/share/lua/playlist/dailymotion.lua b/share/lua/playlist/dailymotion.lua index 2cbae59842..f334cd21db 100644 --- a/share/lua/playlist/dailymotion.lua +++ b/share/lua/playlist/dailymotion.lua @@ -61,6 +61,10 @@ function parse() local score = 666 local bestcodec for codec,_ in pairs(available) do + if pref[codec] == nil then + vlc.msg_warn( "Unknown codec: " .. codec ) + pref[codec] = 42 -- try the 1st unknown codec if other fail + end if pref[codec] < score then bestcodec = codec score = pref[codec]