Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: recordings scattered



On Wednesday 15 January 2003 10:14, Klaus Schmidinger wrote:
> I also have that sometimes (although here the video of the current
> channel simply goes on and the audio gets muted). When I restart the
> replay, everything works fine.

I can reproduce this if I do the following:
- start an instant recording (with DO_REC_AND_PLAY_ON_PRIMARY_DEVICE 
  disabled, so transfer mode is disabled)
- stop recording
- try to replay this recording immediately
current channel is being displayed, audio muted
- stop replay
- start replay
now everything is fine

It seems to be an issue with the correct sequence of ioctl calls,
especially the VIDEO/AUDIO_SELECT_SOURCE appears to be critical.

As a fix, I'm currently testing this patch:

diff -ru -x '*.[ao]' vdr-1.1.19/dvbdevice.c vdr-1.1.19-test/dvbdevice.c
--- vdr-1.1.19/dvbdevice.c	Fri Dec 13 15:01:56 2002
+++ vdr-1.1.19-test/dvbdevice.c	Fri Dec 13 17:59:34 2002
@@ -742,8 +746,12 @@
          CHECK(ioctl(fd_video, VIDEO_SET_BLANK, true));
          CHECK(ioctl(fd_audio, AUDIO_SELECT_SOURCE, AUDIO_SOURCE_MEMORY));
          CHECK(ioctl(fd_audio, AUDIO_SET_AV_SYNC, PlayMode == pmAudioVideo));
-         CHECK(ioctl(fd_audio, AUDIO_PLAY));
          CHECK(ioctl(fd_video, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_MEMORY));
+         CHECK(ioctl(fd_audio, AUDIO_STOP, true));
+         CHECK(ioctl(fd_video, VIDEO_STOP, true));
+         CHECK(ioctl(fd_video, VIDEO_CLEAR_BUFFER));
+         CHECK(ioctl(fd_audio, AUDIO_CLEAR_BUFFER));
+         CHECK(ioctl(fd_audio, AUDIO_PLAY));
          CHECK(ioctl(fd_video, VIDEO_PLAY));
          break;
     case pmAudioOnly:

Sorry Marek, this will probably not solve your problem...

Oliver


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index