From c9b327d0f0cbf6b22a8cbcfbc1739aa7c82be364 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Sun, 11 Apr 2021 23:30:09 -0700 Subject: [PATCH] vlc-video: Emit media ended signal regardless of loop setting Makes the signal's behavior on-par with `obs_source_media_started`. `obs_source_media_started` is emitted every time a file in the playlist is played, and so therefore should `obs_source_media_ended`. In this scenario, the loop setting is actually irrelevant to the behavior that this signal should have. --- plugins/vlc-video/vlc-video-source.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/vlc-video/vlc-video-source.c b/plugins/vlc-video/vlc-video-source.c index 9d42a9c7b..b0edbc130 100644 --- a/plugins/vlc-video/vlc-video-source.c +++ b/plugins/vlc-video/vlc-video-source.c @@ -737,9 +737,10 @@ static void vlcs_stopped(const struct libvlc_event_t *event, void *data) struct vlc_source *c = data; if (!c->loop) { obs_source_output_video(c->source, NULL); - obs_source_media_ended(c->source); } + obs_source_media_ended(c->source); + UNUSED_PARAMETER(event); }