mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Update PIP only, when visible.
This commit is contained in:
parent
e88403d044
commit
2bb2875cd7
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user