We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5838d72 + 6ac9c18 commit 71c0e5cCopy full SHA for 71c0e5c
1 file changed
src/main/java/org/datavyu/plugins/ffmpeg/FfmpegMediaPlayer.java
@@ -35,11 +35,14 @@ protected void playerSeek(double streamTime) throws MediaException {
35
// In most cases seek accurate, with the exception of large backward playback rates
36
int seek_flag = (!isStartTimeUpdated && getRate() < -1) ? SEEK_FAST_FLAG : SEEK_ACCURATE_FLAG;
37
// Mute player when seeking and not playing
38
- if (getState() != PlayerState.PLAYING) {
+ boolean wasMute = getMute();
39
+ if (!getMute() && getState() != PlayerState.PLAYING) {
40
setMute(true);
41
}
42
playerSeek(streamTime, seek_flag);
- setMute(false);
43
+ if (!wasMute) {
44
+ setMute(false);
45
+ }
46
47
48
@Override
0 commit comments