diff options
Diffstat (limited to 'demux/demux.h')
-rw-r--r-- | demux/demux.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demux/demux.h b/demux/demux.h index 07803d2838..9978335cfd 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -43,6 +43,7 @@ enum demux_ctrl { DEMUXER_CTRL_STREAM_CTRL, DEMUXER_CTRL_GET_READER_STATE, DEMUXER_CTRL_GET_BITRATE_STATS, // double[STREAM_TYPE_COUNT] + DEMUXER_CTRL_REPLACE_STREAM, }; struct demux_ctrl_reader_state { @@ -183,6 +184,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; @@ -219,6 +221,7 @@ typedef struct demuxer { // thread-safe, only the demuxer is allowed to access the stream directly. // You can freely use demux_stream_control() to send STREAM_CTRLs, or use // demux_pause() to get exclusive access to the stream. + // Also note that the stream can get replaced if fully_read is set. struct stream *stream; } demuxer_t; |