stream_bluray: do not demux_flush on angle change

A demux_flush can cause corruption and a slight A/V desync, whereas
without it the angle will simply change on the next keyframe, as is
intended for seamless branching. If users want an instant angle change
they can still restart playback and seek to the current position
through Lua.
This commit is contained in:
arch1t3cht authored and Kacper Michajłow committed 2025-10-23 11:41:16 +02:00
1 parent 99d6d4c1c2
commit aa2dad035f
1 file changed
-1
-1
View File
@@ -8059,7 +8059,6 @@ void mp_option_run_callback(struct MPContext *mpctx, struct mp_option_callback *
if (mpctx->playback_initialized && demuxer && demuxer->stream && strcmp(demuxer->stream->info->name, "bdvm/bluray")) {
int angle = opts->stream_bluray_opts->angle - 1;
stream_control(demuxer->stream, STREAM_CTRL_SET_ANGLE, &angle);
demux_flush(demuxer);
}
}
#endif