summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-15 22:45:55 +0100
committerJohns <johns98@gmx.net>2011-12-15 22:45:55 +0100
commit3da81fdfccef94b1a83121873aa3d1a38086135f (patch)
tree800f61213ee52ee7fab531dc3eb336af226b3351 /softhddev.c
parentc79d992a81adb4c9839c1b40cff4a9ebe0e0b152 (diff)
downloadvdr-plugin-softhddevice-3da81fdfccef94b1a83121873aa3d1a38086135f.tar.gz
vdr-plugin-softhddevice-3da81fdfccef94b1a83121873aa3d1a38086135f.tar.bz2
New video/audio sync code.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/softhddev.c b/softhddev.c
index e5935c7..a57eff9 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -208,8 +208,6 @@ static int VideoMaxPacketSize; ///< biggest used packet buffer
static uint32_t VideoStartTick; ///< video start tick
#endif
-extern void VideoWakeup(void); ///< wakeup video handler
-
/**
** Initialize video packet ringbuffer.
*/
@@ -319,7 +317,7 @@ static void VideoNextPacket(int codec_id)
avpkt->pts = AV_NOPTS_VALUE;
avpkt->dts = AV_NOPTS_VALUE;
- VideoWakeup();
+ VideoDisplayHandler();
}
/**
@@ -342,9 +340,7 @@ int VideoDecode(void)
}
filled = atomic_read(&VideoPacketsFilled);
- //Debug(3, "video: decode %3d packets buffered\n", filled);
if (!filled) {
- // Debug(3, "video: decode no packets buffered\n");
return -1;
}
#if 0
@@ -403,6 +399,8 @@ int VideoDecode(void)
return 0;
}
+#if 0
+
/**
** Flush video buffer.
*/
@@ -425,9 +423,6 @@ void VideoWakeup(void)
uint32_t now;
uint64_t delay;
- VideoDisplayHandler();
- return;
-
filled = atomic_read(&VideoPacketsFilled);
if (!filled) {
Debug(3, "video: wakeup no packets buffered\n");
@@ -466,6 +461,8 @@ void VideoWakeup(void)
#endif
}
+#endif
+
/**
** Try video start.
**