mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Change aspect ratio handling with MPV
This commit is contained in:
parent
418dae9dbe
commit
6643208579
@ -47,7 +47,6 @@ final class MPVBackend: PlayerBackend {
|
|||||||
networkStateTimer.start()
|
networkStateTimer.start()
|
||||||
|
|
||||||
if isPlaying {
|
if isPlaying {
|
||||||
model.updateAspectRatio()
|
|
||||||
startClientUpdates()
|
startClientUpdates()
|
||||||
} else {
|
} else {
|
||||||
stopControlsUpdates()
|
stopControlsUpdates()
|
||||||
@ -410,6 +409,9 @@ final class MPVBackend: PlayerBackend {
|
|||||||
isSeeking = false
|
isSeeking = false
|
||||||
networkStateTimer.start()
|
networkStateTimer.start()
|
||||||
|
|
||||||
|
case MPV_EVENT_VIDEO_RECONFIG:
|
||||||
|
model.updateAspectRatio()
|
||||||
|
|
||||||
case MPV_EVENT_SEEK:
|
case MPV_EVENT_SEEK:
|
||||||
isSeeking = true
|
isSeeking = true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user