Using THEMIM at this level results in instantiating multiples copies of
what should be a singleton. This is because any preexisting input needs
to be initialized in the constructor of the THEMIN (MainInputManager). This
leads to recursively calling the constructor over and over.
This patch directly calls the underlying functions(no functional change).
!var_GetFloat( p_input, "start-time" ) &&
!var_GetFloat( p_input, "stop-time" ) )
{
- THEMIM->togglePlayPause();
+ playlist_Pause( THEPL );
if( QMessageBox::question( NULL,
_("Continue playback?"),
== QMessageBox::Yes )
var_SetTime( p_input, "time", (int64_t)i_time * 1000 );
- THEMIM->togglePlayPause();
+ playlist_Play( THEPL );
}
}
else