diff options
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 13 |
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. ** |