From 1c55fa94d2fe41dd8f42f12c0eec5de329a7a54b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sun, 20 Apr 2008 14:05:15 +0200 Subject: [PATCH] Detect (and use) unknown codecs - idea by JPeg --- share/lua/playlist/dailymotion.lua | 4 ++++ 1 file changed, 4 insertions(+) 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] -- 2.39.2