diff options
author | wm4 <wm4@nowhere> | 2016-02-23 22:15:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-23 23:08:24 +0100 |
commit | b5f620ae75f964c01e5c0fc983e6d5af9f452750 (patch) | |
tree | 686bfe8d858db91d12010c30923417138489c34d /player/command.c | |
parent | 36c6c0f79b84b7e82da468126e160dffce92e1c5 (diff) | |
download | mpv-b5f620ae75f964c01e5c0fc983e6d5af9f452750.tar.bz2 mpv-b5f620ae75f964c01e5c0fc983e6d5af9f452750.tar.xz |
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.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |