summaryrefslogtreecommitdiffstats
path: root/common/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/common.h')
-rw-r--r--common/common.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/common.h b/common/common.h
index cdd1d56ed5..bed9060f71 100644
--- a/common/common.h
+++ b/common/common.h
@@ -59,10 +59,11 @@ enum stream_type {
};
enum {
- DATA_OK = 1,
- DATA_WAIT = 0,
- DATA_AGAIN = -1,
- DATA_EOF = -2,
+ DATA_OK = 1, // data is actually being returned
+ DATA_WAIT = 0, // async wait: check state again after next wakeup
+ DATA_AGAIN = -2, // repeat request (internal progress was made)
+ DATA_STARVE = -1, // need input (might require to drain other outputs)
+ DATA_EOF = -3, // no more data available
};
extern const char mpv_version[];