Update PIP only, when visible.

This commit is contained in:
Johns 2013-01-07 19:31:05 +01:00
parent e88403d044
commit 2bb2875cd7

View File

@ -1640,9 +1640,12 @@ static void SwapPipPosition(void)
int height; int height;
double video_aspect; double video_aspect;
GetOsdSize(&width, &height, &video_aspect);
PipAltPosition ^= 1; PipAltPosition ^= 1;
if (!PipReceiver) { // no PIP visible, no update needed
return;
}
GetOsdSize(&width, &height, &video_aspect);
if (PipAltPosition) { if (PipAltPosition) {
PipSetPosition((ConfigPipAltVideoX * width) / 100, PipSetPosition((ConfigPipAltVideoX * width) / 100,
(ConfigPipAltVideoY * height) / 100, (ConfigPipAltVideoY * height) / 100,