diff options
author | mio <[email protected]> | 2024-09-29 19:20:32 +1000 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-09-30 21:59:48 +0900 |
commit | 0dbeeeb9f20945e8edfd2d049a260283a84a8d75 (patch) | |
tree | 6e8c72ac03df7fb9b12da5276bb77f9c4e9c96f1 /src/app/stateChange.cpp | |
parent | f41da351c6fa85a36a29611edc98cf74834b43af (diff) | |
download | codeine-0dbeeeb9f20945e8edfd2d049a260283a84a8d75.tar.gz codeine-0dbeeeb9f20945e8edfd2d049a260283a84a8d75.zip |
Address -Wall warnings
VideoWindow::ExposeEvent wasn't being used correctly; it should be a
TQCustomEvent (although, the 3000 type is already being used for
forwarding XINE_PROGRESS_EVENT).
While the pts_per_smpls part never seemed to be encountered, it would
have resulted in a floating point exception as it's always 0. Commented
out to leave a hint as to what the code should be doing.
Resolves: TDE/codeine#2
Signed-off-by: mio <[email protected]>
(cherry picked from commit 9ef39acd5d211e5a8164bfb4a075e2e0cd6f9bee)
Diffstat (limited to 'src/app/stateChange.cpp')
-rw-r--r-- | src/app/stateChange.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/stateChange.cpp b/src/app/stateChange.cpp index e0450d3..efa9389 100644 --- a/src/app/stateChange.cpp +++ b/src/app/stateChange.cpp @@ -120,6 +120,8 @@ MainWindow::engineStateChanged( Engine::State state ) case Engine::Paused: m_positionSlider->setEnabled( TheStream::canSeek() ); break; + default: + break; } @@ -160,6 +162,8 @@ MainWindow::engineStateChanged( Engine::State state ) case Engine::TrackEnded: m_titleLabel->setText( TheStream::prettyTitle() ); break; + default: + break; } @@ -187,6 +191,8 @@ MainWindow::engineStateChanged( Engine::State state ) case Engine::Playing: toolBar()->hide(); break; + default: + break; } } } |