Hy,

i'm modifying the play-ac3 tool for sblive together with vdr. It's works
well for playback, but if i press "pause" and release it, audio is out of
sync.
I have found out:
Your Input thread is ~ 3 seconds after the pause command stopping (in a
loop), because the put-get functions are filling the buffers in that time.
The output thread stops direct, because the video is freezed.
So the ac3 audio stops 3 seconds after the pause command. After start replay
again, the 3 seconds are out of sync.
If i modify the line 720
        if (!blockInput && stillIndex < 0) {
to
        if (!blockInput && stillIndex < 0 && !paused) {
the syncronisation is not lost.
I'm not sure of side effects, but i found none.

Perhaps it is possible to change the threads loops to semaphores ??

Bye
Andreas



-- 
Info:
To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as 
subject.

Reply via email to