mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
70_XBMC: fixed too frequent updates after stops
git-svn-id: https://svn.fhem.de/fhem/trunk@10966 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b17c664861
commit
cbbcd60592
@ -243,6 +243,7 @@ sub XBMC_QueueIntervalUpdate($;$) {
|
|||||||
if (!defined($time)) {
|
if (!defined($time)) {
|
||||||
$time = AttrVal($hash->{NAME},'updateInterval',60);
|
$time = AttrVal($hash->{NAME},'updateInterval',60);
|
||||||
}
|
}
|
||||||
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer(time() + $time, "XBMC_Check", $hash, 0);
|
InternalTimer(time() + $time, "XBMC_Check", $hash, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -596,7 +597,7 @@ sub XBMC_ProcessNotification($$)
|
|||||||
#HACK: We want to fetch GUI.Properties here to update for example stereoscopicmode.
|
#HACK: We want to fetch GUI.Properties here to update for example stereoscopicmode.
|
||||||
# When doing this here we still get the in-movie stereo mode. So we define a timer
|
# When doing this here we still get the in-movie stereo mode. So we define a timer
|
||||||
# to invoke the update in some (tm) seconds
|
# to invoke the update in some (tm) seconds
|
||||||
InternalTimer(time() + 2, "XBMC_Check", $hash, 0);
|
XBMC_QueueIntervalUpdate($hash, 2);
|
||||||
}
|
}
|
||||||
elsif($obj->{method} eq "Player.OnPause") {
|
elsif($obj->{method} eq "Player.OnPause") {
|
||||||
readingsSingleUpdate($hash,"playStatus",'paused',1);
|
readingsSingleUpdate($hash,"playStatus",'paused',1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user