summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-01-22 11:12:57 +0100
committerJohns <johns98@gmx.net>2012-01-22 11:12:57 +0100
commit329dbc5f07dd38b432a207f5f5d40793e2f7f6dd (patch)
tree1b4bec40a20c98d5c603b5428fe996928239d95e /softhddev.c
parentbc8a13e1efcfe0bea083c911c35b528dfb899106 (diff)
downloadvdr-plugin-softhddevice-329dbc5f07dd38b432a207f5f5d40793e2f7f6dd.tar.gz
vdr-plugin-softhddevice-329dbc5f07dd38b432a207f5f5d40793e2f7f6dd.tar.bz2
Add dummy player and control for suspend mode.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/softhddev.c b/softhddev.c
index af0bd8c..80abe9a 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -887,6 +887,12 @@ void StillPicture(const uint8_t * data, int size)
Error(_("[softhddev] invalid PES video packet\n"));
return;
}
+ if (VideoCodecID == CODEC_ID_NONE) {
+ // FIXME: should detect codec, see PlayVideo
+ Error(_("[softhddev] no codec known for still picture\n"));
+ return;
+ }
+
Clear(); // flush video buffers
// +1 future for deinterlace
for (i = -1; i < (VideoCodecID == CODEC_ID_MPEG2VIDEO ? 3 : 17); ++i) {
@@ -1233,6 +1239,7 @@ void Suspend(void)
if (ConfigSuspendClose) {
pthread_mutex_lock(&SuspendLockMutex);
// FIXME: close audio
+
// FIXME: close video
pthread_mutex_unlock(&SuspendLockMutex);
}