From 77b06fa017c70491c9b3820fdf14aeeb27b6088c Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 28 Oct 2014 15:30:27 +0100 Subject: player: handle edition reloading slightly differently Use the codepath that is normally used for DVD/BD title switching and DVB channel switching. Removes some extra artifacts from the client API: now MPV_EVENT_END_FILE will never be called on reloads (and neither is MPV_EVENT_START_FILE). --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 0806cd093c..752a62de8f 100644 --- a/player/command.c +++ b/player/command.c @@ -809,7 +809,7 @@ static int mp_property_edition(void *ctx, struct m_property *prop, edition = *(int *)arg; if (edition != demuxer->edition) { opts->edition_id = edition; - mpctx->stop_play = PT_RESTART; + mpctx->stop_play = PT_RELOAD_DEMUXER; } return M_PROPERTY_OK; } -- cgit v1.2.3