From 271a150588762c44592fcbf23f8f70ad752a6d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ansis=20M=C4=81li=C5=86=C5=A1?= Date: Sun, 5 Jul 2026 14:59:42 +0100 Subject: [PATCH] Fix a bug where playback would not loop --- pl_mpeg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pl_mpeg.h b/pl_mpeg.h index b42f53f..50d84dc 100755 --- a/pl_mpeg.h +++ b/pl_mpeg.h @@ -1201,7 +1201,7 @@ plm_frame_t *plm_decode_video(plm_t *self) { if (frame) { self->time = frame->time; } - else if (plm_demux_has_ended(self->demux)) { + if (plm_demux_has_ended(self->demux)) { plm_handle_end(self); } return frame; @@ -1220,7 +1220,7 @@ plm_samples_t *plm_decode_audio(plm_t *self) { if (samples) { self->time = samples->time; } - else if (plm_demux_has_ended(self->demux)) { + if (plm_demux_has_ended(self->demux)) { plm_handle_end(self); } return samples;