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.
This commit is contained in:
tt2468 2021-04-11 23:30:09 -07:00 committed by Jim
parent 26f4d85398
commit c9b327d0f0

View File

@ -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);
}