diff options
author | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2016-01-07 23:55:15 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-14 00:36:53 +0100 |
commit | 16723d4bb1e0fbb8fd15faf590890103bb9753a5 (patch) | |
tree | 8d7b84b2da83d7a2a85be879d3d9300c809d38ba /stream/dvbin.h | |
parent | 4c3f95708f7176b52f979d860ce0b98d16e184d0 (diff) | |
download | mpv-16723d4bb1e0fbb8fd15faf590890103bb9753a5.tar.bz2 mpv-16723d4bb1e0fbb8fd15faf590890103bb9753a5.tar.xz |
stream_dvb: persist state-information across channel-switches.
The state-structure is kept in a static pointer and reused on
recreation of the stream.
To not leak the state and the FDs within upon mpv shutdown,
the state-structure is still destructed gracefully in dvbin_close(),
unless a channel switch has been initiated directly before.
This fixes channel-switching for DVB which was broken since a609877.
Diffstat (limited to 'stream/dvbin.h')
-rw-r--r-- | stream/dvbin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/dvbin.h b/stream/dvbin.h index 422e6c713c..cf0a41a502 100644 --- a/stream/dvbin.h +++ b/stream/dvbin.h @@ -102,6 +102,7 @@ typedef struct { int retry; int timeout; int last_freq; + bool switching_channel; } dvb_state_t; typedef struct dvb_params { |