summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-01-07 19:31:05 +0100
committerJohns <johns98@gmx.net>2013-01-07 19:31:05 +0100
commit2bb2875cd704246a91c1c6f5980fc60bf67b2ec6 (patch)
treed480c2096e8f8825bf69a8b445550202176ec576 /softhddevice.cpp
parente88403d044ea55d91056b3f464f5c49bec8710ab (diff)
downloadvdr-plugin-softhddevice-2bb2875cd704246a91c1c6f5980fc60bf67b2ec6.tar.gz
vdr-plugin-softhddevice-2bb2875cd704246a91c1c6f5980fc60bf67b2ec6.tar.bz2
Update PIP only, when visible.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index 2f5db16..74a268f 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -1640,9 +1640,12 @@ static void SwapPipPosition(void)
int height;
double video_aspect;
- GetOsdSize(&width, &height, &video_aspect);
-
PipAltPosition ^= 1;
+ if (!PipReceiver) { // no PIP visible, no update needed
+ return;
+ }
+
+ GetOsdSize(&width, &height, &video_aspect);
if (PipAltPosition) {
PipSetPosition((ConfigPipAltVideoX * width) / 100,
(ConfigPipAltVideoY * height) / 100,