mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Restore video position, when PIP closes.
This commit is contained in:
parent
7e96a292eb
commit
8ee1e84b2e
10
softhddev.c
10
softhddev.c
@ -2939,8 +2939,8 @@ void PipSetPosition(int x, int y, int width, int height, int pip_x, int pip_y,
|
|||||||
if (!PipVideoStream->HwDecoder) { // pip not running
|
if (!PipVideoStream->HwDecoder) { // pip not running
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
VideoSetOutputPosition(PipVideoStream->HwDecoder, pip_x, pip_y,
|
VideoSetOutputPosition(PipVideoStream->HwDecoder, pip_x, pip_y, pip_width,
|
||||||
pip_width, pip_height);
|
pip_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2983,6 +2983,10 @@ void PipStart(int x, int y, int width, int height, int pip_x, int pip_y,
|
|||||||
*/
|
*/
|
||||||
void PipStop(void)
|
void PipStop(void)
|
||||||
{
|
{
|
||||||
|
if (!MyVideoStream->HwDecoder) { // video not running
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (PipVideoStream->Decoder) {
|
if (PipVideoStream->Decoder) {
|
||||||
PipVideoStream->SkipStream = 1;
|
PipVideoStream->SkipStream = 1;
|
||||||
CodecVideoClose(PipVideoStream->Decoder);
|
CodecVideoClose(PipVideoStream->Decoder);
|
||||||
@ -2996,6 +3000,8 @@ void PipStop(void)
|
|||||||
VideoPacketExit(PipVideoStream);
|
VideoPacketExit(PipVideoStream);
|
||||||
|
|
||||||
PipVideoStream->NewStream = 1;
|
PipVideoStream->NewStream = 1;
|
||||||
|
|
||||||
|
ScaleVideo(0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user