From 4121016689668921538317449c0ea9063fc086fc Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 26 Aug 2016 12:31:09 +0200 Subject: 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. --- demux/demux.h | 1 + 1 file changed, 1 insertion(+) (limited to 'demux/demux.h') 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; -- cgit v1.2.3