diff options
-rw-r--r-- | Changelog | 1 | ||||
-rw-r--r-- | ffplay.c | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -54,6 +54,7 @@ version <next>: - libstagefright support removed - spectrumsynth filter - ahistogram filter +- only seek with the right mouse button in ffplay version 2.8: @@ -3480,9 +3480,11 @@ static void event_loop(VideoState *cur_stream) } cursor_last_shown = av_gettime_relative(); if (event.type == SDL_MOUSEBUTTONDOWN) { + if (event.button.button != SDL_BUTTON_RIGHT) + break; x = event.button.x; } else { - if (event.motion.state != SDL_PRESSED) + if (!(event.motion.state & SDL_BUTTON_RMASK)) break; x = event.motion.x; } |