summaryrefslogtreecommitdiffstats
path: root/demux/demux.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-14 14:49:50 +0100
committerwm4 <wm4@nowhere>2013-02-14 19:53:06 +0100
commite6307997d2cf479d01a9993b6adba13e18543be0 (patch)
tree9383b15d27ba60a364d1cd8af51c271cc3513208 /demux/demux.h
parent55e4f76ce83b88beff650e8d4d8ba8c08348e4dd (diff)
downloadmpv-e6307997d2cf479d01a9993b6adba13e18543be0.tar.bz2
mpv-e6307997d2cf479d01a9993b6adba13e18543be0.tar.xz
demux: restructure code that warns about packet buffer overflows
There should be no functional changes, except that way how avoiding spamming the terminal with the overflow warning is handled changes a bit. The removed check for ds->eof looks suspicious, but it should be redundant now.
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 621df5efcb..3af759316d 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -235,6 +235,7 @@ typedef struct demuxer {
* that would make pts ambigious, preferably supports back/forward flags */
bool accurate_seek;
enum timestamp_type timestamp_type;
+ bool warned_queue_overflow;
struct demux_stream *ds[STREAM_TYPE_COUNT]; // video/audio/sub buffers