diff options
-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, |