Update PIP only, when visible.

This commit is contained in:
Johns 2013-01-07 19:31:05 +01:00
parent e88403d044
commit 2bb2875cd7
1 changed files with 5 additions and 2 deletions

View File

@ -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,