diff options
author | mio <[email protected]> | 2024-09-29 19:20:32 +1000 |
---|---|---|
committer | mio <[email protected]> | 2024-09-29 20:45:04 +1000 |
commit | 9ef39acd5d211e5a8164bfb4a075e2e0cd6f9bee (patch) | |
tree | 96cae6b7241c050209b979dec64dc42e34f98ee3 /src/app/xineEngine.cpp | |
parent | c0311bdfc33f07dbde42a9b4f4758a6c505aae84 (diff) | |
download | codeine-9ef39acd5d211e5a8164bfb4a075e2e0cd6f9bee.tar.gz codeine-9ef39acd5d211e5a8164bfb4a075e2e0cd6f9bee.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]>
Diffstat (limited to 'src/app/xineEngine.cpp')
-rw-r--r-- | src/app/xineEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/xineEngine.cpp b/src/app/xineEngine.cpp index 6132f4a..e38ff4e 100644 --- a/src/app/xineEngine.cpp +++ b/src/app/xineEngine.cpp @@ -615,7 +615,7 @@ VideoWindow::scope() //prune the buffer list and update the m_current_vpts timestamp timerEvent( nullptr ); - const int64_t pts_per_smpls = 0; //scope_plugin_pts_per_smpls( m_scope ); + // const int64_t pts_per_smpls = 0; //scope_plugin_pts_per_smpls( m_scope ); for( int channels = xine_get_stream_info( m_stream, XINE_STREAM_INFO_AUDIO_CHANNELS ), frame = 0; frame < SCOPE_SIZE; ) { MyNode *best_node = nullptr; @@ -631,7 +631,7 @@ VideoWindow::scope() diff = m_current_vpts; diff -= best_node->vpts; diff *= 1<<16; - diff /= pts_per_smpls; + // diff /= pts_per_smpls; const int16_t* data16 = best_node->mem; |