]> git.sesse.net Git - vlc/blobdiff - share/lua/http/js/functions.js
LuaHttp: Fix #3628 (update the sout mrl).
[vlc] / share / lua / http / js / functions.js
index 7153abf7d2bcedb1cf1b1978df6ca91fb2b990c7..d965e06b82bd85dca8fc66711ccd5b4e8bd2cfe7 100644 (file)
@@ -616,7 +616,7 @@ function parse_playlist()
                     pl.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );
                     var duration = elt.getAttribute( 'duration' );
                     if( duration > 0 )
-                        pl.appendChild( document.createTextNode( " (" + format_time( elt.getAttribute( 'duration' ) / 1000000 ) + ")" ) );
+                        pl.appendChild( document.createTextNode( " (" + format_time( elt.getAttribute( 'duration' ) ) + ")" ) );
                     pos.appendChild( pl );
 
                     if( elt.getAttribute( 'ro' ) == 'rw' )
@@ -843,7 +843,7 @@ function update_input_fake()
     remove_input_options( ":fake" );
     var mrl = document.getElementById( 'input_mrl' );
 
-    mrl.value = "fake:";
+    mrl.value = "fake://";
 
     add_input_option( ":fake-file=" + value( "input_fake_filename" ) );
 
@@ -1035,8 +1035,8 @@ function update_sout()
     if( ( transcode || output ) && checked( 'sout_all' ) )
         input_options.push( ":sout-all" );
 
-    /*var mrl = document.getElementById( 'sout_mrl' );
-    mrl.value = input_options.join( " " )*/
+    var mrl = document.getElementById( 'sout_mrl' );
+    mrl.value = option;
 
     refresh_input_options_list();
 }