summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2016-05-13 16:15:09 +0100
committerChrisK2 <spam@kalania.de>2016-05-14 11:22:25 +0200
commit77d50cb3cfb381137900c7568169b41ffa7b5273 (patch)
tree7043b422a106199e2b3d887b68de90164f22ae10
parent3858d37b61995d7462bb5592173af1c24c6af167 (diff)
downloadmpv-77d50cb3cfb381137900c7568169b41ffa7b5273.tar.bz2
mpv-77d50cb3cfb381137900c7568169b41ffa7b5273.tar.xz
ytdl_hook: Just check if protocol is rtmp
Partial fix to #3090
-rw-r--r--player/lua/ytdl_hook.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua
index c0ce8b97c4..97ce02dab8 100644
--- a/player/lua/ytdl_hook.lua
+++ b/player/lua/ytdl_hook.lua
@@ -253,7 +253,7 @@ mp.add_hook("on_load", 10, function ()
end
-- for rtmp
- if not (json.play_path == nil) then
+ if (json.protocol == "rtmp") then
local rtmp_prop = append_rtmp_prop(nil,
"rtmp_tcurl", streamurl)
rtmp_prop = append_rtmp_prop(rtmp_prop,