summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-01-05 16:37:25 +0100
committerJohns <johns98@gmx.net>2013-01-05 16:37:25 +0100
commit8ee1e84b2eecc2959e6592613df20e5340336d7f (patch)
treed89ea2bbb4df70311a99a0ffe1cb8148e9f7fcde /softhddev.c
parent7e96a292eb4ec440e599d4f27aac4afcd4788369 (diff)
downloadvdr-plugin-softhddevice-8ee1e84b2eecc2959e6592613df20e5340336d7f.tar.gz
vdr-plugin-softhddevice-8ee1e84b2eecc2959e6592613df20e5340336d7f.tar.bz2
Restore video position, when PIP closes.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/softhddev.c b/softhddev.c
index ad8c609..102be69 100644
--- a/softhddev.c
+++ b/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
return;
}
- VideoSetOutputPosition(PipVideoStream->HwDecoder, pip_x, pip_y,
- pip_width, pip_height);
+ VideoSetOutputPosition(PipVideoStream->HwDecoder, pip_x, pip_y, pip_width,
+ 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)
{
+ if (!MyVideoStream->HwDecoder) { // video not running
+ return;
+ }
+
if (PipVideoStream->Decoder) {
PipVideoStream->SkipStream = 1;
CodecVideoClose(PipVideoStream->Decoder);
@@ -2996,6 +3000,8 @@ void PipStop(void)
VideoPacketExit(PipVideoStream);
PipVideoStream->NewStream = 1;
+
+ ScaleVideo(0, 0, 0, 0);
}
/**