diff options
author | wm4 <wm4@nowhere> | 2014-07-18 15:11:21 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-18 15:11:21 +0200 |
commit | 2646874369b0c5beb2aa2d443734745a19ad4d6c (patch) | |
tree | 3c19e850df1f0b524ff3bedf7a7bf1cfdd0c1b85 /player/core.h | |
parent | 7083f88ca8b98aa74dbc9e34d5c5cf6e150cfe0b (diff) | |
download | mpv-2646874369b0c5beb2aa2d443734745a19ad4d6c.tar.bz2 mpv-2646874369b0c5beb2aa2d443734745a19ad4d6c.tar.xz |
video: use symbolic constants instead of magic integers
In my opinion this is not really necessary, since there's only a single
user of update_video(), but others reading this code would probably hate
me for using magic integer values instead of symbolic constants.
This should be a purely cosmetic commit; any changes in behavior are
bugs.
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h index 01fefd0889..013a645e8b 100644 --- a/player/core.h +++ b/player/core.h @@ -137,6 +137,13 @@ struct track { enum { MAX_NUM_VO_PTS = 100, + + // update_video() - code also uses: <0 error, 0 eof, >0 progress + VD_ERROR = -1, + VD_EOF = 0, // end of file - no new output + VD_PROGRESS = 1, // progress, but no output; repeat call with no waiting + VD_NEW_FRAME = 2, // the call produced a new frame + VD_WAIT = 3, // no EOF, but no output; wait until wakeup }; #define NUM_PTRACKS 2 |