]> git.sesse.net Git - ultimatescore/commitdiff
Use the new disconnect function for releasing stale streams.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 14 Apr 2018 21:48:02 +0000 (23:48 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 14 Apr 2018 21:48:02 +0000 (23:48 +0200)
nageru/ultimate.lua

index b01a4e4b2047a1eff8c326c86f07977d2bd17e09..13b03708ad38e86100bdcb460f6f35df68e3ee72 100644 (file)
@@ -63,6 +63,10 @@ function reload_cef()
        cef_input:execute_javascript_async("play()")
 end
 
+function disconnect_iptv()
+       iptv_video:disconnect()
+end
+
 -- Utility function to help creating many similar chains that can differ
 -- in a free set of chosen parameters.
 function make_cartesian_product(parms, callback)
@@ -1129,5 +1133,6 @@ function calc_fade_progress(t, transition_start, transition_end)
 end
 
 ThemeMenu.set(
-       { "Reload overlay", reload_cef }
+       { "Reload overlay", reload_cef },
+       { "Disconnect IPTV", disconnect_iptv }
 )