summaryrefslogtreecommitdiffstats
path: root/demux/demux.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-08-26 12:31:09 +0200
committerwm4 <wm4@nowhere>2016-08-26 13:33:38 +0200
commit4121016689668921538317449c0ea9063fc086fc (patch)
treeb95cb98b22a89271af627464894f05f855346dc2 /demux/demux.h
parentb636b1905822272bdde10ebe5d997396751892bf (diff)
downloadmpv-4121016689668921538317449c0ea9063fc086fc.tar.bz2
mpv-4121016689668921538317449c0ea9063fc086fc.tar.xz
player: don't directly access demuxer->stream
Cleaner and makes it easier to change the underlying stream. mp_property_stream_capture() still directly accesses it directly via demux_run_on_thread(). This is evil, but still somewhat sane and is not getting into the way here. Not sure if I got all field accesses.
Diffstat (limited to 'demux/demux.h')
-rw-r--r--demux/demux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h
index 07803d2838..c7d1b8ee1d 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -183,6 +183,7 @@ typedef struct demuxer {
// packets is not slow either (unlike e.g. libavdevice pseudo-demuxers).
// Typical examples: text subtitles, playlists
bool fully_read;
+ bool is_network; // opened directly from a network stream
// Bitmask of DEMUX_EVENT_*
int events;