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)
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 );