Javascript Interval not working
<p>I  got 2 function in my javascript interval:
I start the interval with 2 html buttons, start (starts it) and stop (stops it)</p>

<p>This is started:</p>

<pre><code>function start_sync(){
    //runs the interval
    if(sync_interval == false)
    {
        sync_interval = setInterval(function(){
            gl_context.drawImage(gl_video,0,0,gl_cw,gl_ch);
            update_seek_slider_position(gl_video.currentTime);
        },10);
        sync_interval_running = true;
    };
    console.log("Sync Interval Started");
};
</code></pre>

<p>This is called when I press stop:</p>

<pre><code>function stop_sync(){
    if(sync_interval == true)
    {
        clearInterval(sync_interval); //stops the interval
        sync_interval_running = false;
    };
    console.log("Sync Interval Stopped");
}
</code></pre>

<p>ok the thing is that, the second functions DOES NOT STOP, "update_seek_slider_position(gl_video.currentTime);"
it still goes one. </p>

<p>Does the js interval only accepts one function?</p>
