Commit f3efae83 authored by Erwan Tulou's avatar Erwan Tulou

skins2: add a way to reset rate to normal speed (trac #2412)

Skins did not offer a simple way to get back to normal speed
once user had clicked several times on either slower or faster
rates.

This patch automatically resets rate to normal if user presses play/pause
when an input is already launched. (as suggested in trac #2412)
parent a94dd37e
......@@ -34,6 +34,14 @@ void CmdPlay::execute()
if( pPlaylist == NULL )
return;
// if already playing an input, reset rate to normal speed
input_thread_t *pInput = playlist_CurrentInput( pPlaylist );
if( pInput )
{
var_SetFloat( pInput, "rate", 1.0 );
vlc_object_release( pInput );
}
playlist_Lock( pPlaylist );
const bool b_empty = playlist_IsEmpty( pPlaylist );
playlist_Unlock( pPlaylist );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment