From b5f620ae75f964c01e5c0fc983e6d5af9f452750 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 23 Feb 2016 22:15:10 +0100 Subject: player: remove unused MPContext.stream field It was just dead code. Also fixes the stream-open-filename property, which is supposed to be read-only if a file was already opened. --- 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 c6ba268dbf..642330e34f 100644 --- a/player/command.c +++ b/player/command.c @@ -350,7 +350,7 @@ static int mp_property_stream_open_filename(void *ctx, struct m_property *prop, return M_PROPERTY_UNAVAILABLE; switch (action) { case M_PROPERTY_SET: { - if (mpctx->stream) + if (mpctx->demuxer) return M_PROPERTY_ERROR; mpctx->stream_open_filename = talloc_strdup(mpctx->stream_open_filename, *(char **)arg); -- cgit v1.2.3