From 2bb2875cd704246a91c1c6f5980fc60bf67b2ec6 Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 7 Jan 2013 19:31:05 +0100 Subject: [PATCH] Update PIP only, when visible. --- softhddevice.cpp | 7 +++++-- 1 file 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,