diff options
author | Johns <johns98@gmx.net> | 2013-01-07 19:31:05 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2013-01-07 19:31:05 +0100 |
commit | 2bb2875cd704246a91c1c6f5980fc60bf67b2ec6 (patch) | |
tree | d480c2096e8f8825bf69a8b445550202176ec576 /softhddevice.cpp | |
parent | e88403d044ea55d91056b3f464f5c49bec8710ab (diff) | |
download | vdr-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.cpp | 7 |
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, |