From 3da81fdfccef94b1a83121873aa3d1a38086135f Mon Sep 17 00:00:00 2001 From: Johns Date: Thu, 15 Dec 2011 22:45:55 +0100 Subject: New video/audio sync code. --- softhddev.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'softhddev.c') 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. ** -- cgit v1.2.3