Browse Source

UI: Remove duplicate media timer code

This removes duplicate code that is already in the
start/stop timer functions.
Clayton Groeneveld 5 years ago
parent
commit
adb4c40f73
1 changed files with 2 additions and 2 deletions
  1. 2 2
      UI/media-controls.cpp

+ 2 - 2
UI/media-controls.cpp

@@ -120,7 +120,7 @@ void MediaControls::MediaSliderClicked()
 	} else if (state == OBS_MEDIA_STATE_PLAYING) {
 		prevPaused = false;
 		PauseMedia();
-		mediaTimer.stop();
+		StopMediaTimer();
 	}
 
 	seek = ui->slider->value();
@@ -145,7 +145,7 @@ void MediaControls::MediaSliderReleased()
 
 	if (!prevPaused) {
 		PlayMedia();
-		mediaTimer.start(1000);
+		StartMediaTimer();
 	}
 }