Posts: 6,810
Joined: Jul 2010
Reputation:
198
What we currently have in load/save channelsSettings is a chain of work arounds. First OpenDefaultStreams was not able to open desired streams because those were not ready. Then we delayed load settings and opened audio/subs explicitly. Because of delayed load we observed overwrite of settings after a failed channels switch -> valid flag was introduced.
Now the original problem is solved: OpenDefaultStreams is called after a stream change. If load/save is touched, it should be aligned with load/save of video settings. The work arounds can be cleaned-up.
Posts: 3,735
Joined: Dec 2010
Reputation:
53
negge
yo guysv7may bd latr tomorroe
Posts: 3,735
I need to do some more digging then, I'm not familiar with that part of the code. I still think it could be a good idea to also load them during a stream change, since there's the possibility that the user has set e.g. Finnish subtitles as default for a channel, but when he switched to it the program didn't have any subtitles. Once a non-Finnish program starts the user would likely want the subs enabled, and at the moment that won't happen.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
There is no need to reinvent the wheel. All bits are already in place: a stream change triggers OpenDefaultStreams which opens audio and subs according the the channel settings. Once settings are loaded you can't reload them because it would overwrite changes you have made since loading. Settings are saved on stop.
Video settings are handled in application and FileStateJob. Exactly at those places in the code where video settings are handled, channels settings should be handled as well. The other bits should be cleaned out.
Posts: 3,735
Joined: Dec 2010
Reputation:
53
negge
yo guysv7may bd latr tomorroe
Posts: 3,735
Alright, thanks for the pointers, I'll have a look. You're incorrect about "settings are saved on stop" though, PVR channel settings are saved all over the place.
I started working on unifying the channel settings some time ago so that they're stored just like all other video items, I'll see if I can find some time to clean it up and push it to Github.
Posts: 4,061
Joined: Oct 2007
Reputation:
90
zag
Team-Kodi Member
Posts: 4,061
2015-11-25, 01:04
(This post was last modified: 2015-11-25, 13:22 by zag.)
NICE! Just found this setting and works rather well.
The video is very quick to change now, even faster than my old dbox which is great.
No problems with audio dropouts as far as my limited testing has gone.
Using TVheadend client/server on same box.
Posts: 188
Joined: Dec 2011
Reputation:
1
bam80
Senior Member
Posts: 188
Hi zag,
what exact setting are you talking about?
Posts: 188
Joined: Dec 2011
Reputation:
1
bam80
Senior Member
Posts: 188
What kind of TV source do you have in tvheadend?
Posts: 4,061
Joined: Oct 2007
Reputation:
90
zag
Team-Kodi Member
Posts: 4,061
Testing with uk freesat DVB-S2