diff options
author | wm4 <wm4@nowhere> | 2014-08-27 00:20:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-27 00:20:38 +0200 |
commit | a8513f8b37343c27a4abea380ae0aa6bbae3894c (patch) | |
tree | 3d6779c304f222bf7d5b8b615cf05ae8fa36fcbc /demux/demux.h | |
parent | 08b5dccd1212e442fa3105fc9f14ebe2e8fc445b (diff) | |
download | mpv-a8513f8b37343c27a4abea380ae0aa6bbae3894c.tar.bz2 mpv-a8513f8b37343c27a4abea380ae0aa6bbae3894c.tar.xz |
demux: reduce wakeups if no cache is active
The purpose of the unconditional pthread_cond_signal() when reading
cached DEMUXER_CTRLs and STREAM_CTRLs was apparently to update the
stream cache state. Otherwise, the cached fields would never be updated
when the stream is e.g. paused.
The same could be said about other CTRLs, but these aren't as important,
since they are normally updated while reading packet data.
In order to reduce wakeups, make this logic explicit.
Diffstat (limited to 'demux/demux.h')
0 files changed, 0 insertions, 0 deletions