From 16723d4bb1e0fbb8fd15faf590890103bb9753a5 Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Thu, 7 Jan 2016 23:55:15 +0100 Subject: 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. --- stream/dvbin.h | 1 + 1 file changed, 1 insertion(+) (limited to 'stream/dvbin.h') 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 { -- cgit v1.2.3