mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 15:24:07 +00:00
UI: Remove duplicate media timer code
This removes duplicate code that is already in the start/stop timer functions.
This commit is contained in:
parent
af09057395
commit
adb4c40f73
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue