diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-12-15 01:02:14 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-12-16 20:04:34 +0200 |
commit | 00c2bafb0ac25a9c5ce845f49f6718b06ff03bbe (patch) | |
tree | c2b63829cb03d422cac1138edf1f8aa24e6ab34e /mp_core.h | |
parent | de3be1d9cafaa35b540e33a5f042804bef8e97d8 (diff) | |
download | mpv-00c2bafb0ac25a9c5ce845f49f6718b06ff03bbe.tar.bz2 mpv-00c2bafb0ac25a9c5ce845f49f6718b06ff03bbe.tar.xz |
core: remove looping in update_video(), modify command handling a bit
Let higher-level code call update_video() again instead of looping
inside it until there's a frame ready to show. Change the conditions
for running user commands somewhat. Overall effect shouldn't be that
big. Now other commands can be executed after a seek before a video
frame is decoded; in this case the seek target time may be used as the
"current position".
Diffstat (limited to 'mp_core.h')
-rw-r--r-- | mp_core.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -152,6 +152,9 @@ typedef struct MPContext { * (or at least queued to be flipped by VO) */ double video_pts; + // used to prevent hanging in some error cases + unsigned int start_timestamp; + // Timestamp from the last time some timing functions read the // current time, in (occasionally wrapping) microseconds. Used // to turn a new time value to a delta from last time. |