Mailing List archive

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

[vdr] Re: MP3 too fast !



On 23 Feb 2002 ma.hoff@t-online.de (Martin Hoffmann) wrote:

>> I had this problem too. if you stop the playback and start it again it
>> will work. well, it did work for me...
>>
> Same here ... did not actually find out how to reproduce this behavoiur ... 

Well, have done some testing today and found out that mp3 replay
fails if you have replayed a dvd or a recording with the new
ac3out via DVB (this means something that uses LCPM audio)
before. You have to start a normal recording (without ac3) to fix
this.

I have included an experimental patch against mp3 0.36 which
fixes the problem for me. I cannot explain why this works, as
the additional commands doesn't make a logical sense. May be
this all is cause by the weak LPCM implementation in the driver.

Could please everybody who have the replay problem test the code
and give me a note.

diff -uN VDR-0.99-mp3-0.36/dvbapi.c VDR/dvbapi.c
--- VDR-0.99-mp3-0.36/dvbapi.c	Mon Feb 11 12:28:57 2002
+++ VDR/dvbapi.c	Sun Feb 24 14:24:38 2002
@@ -3041,6 +3043,13 @@
      }
   else {
      if (fd_video >= 0 && fd_audio >= 0) {
+#ifdef MP3SUPPORT
+        CHECK(ioctl(fd_video, VIDEO_SET_BLANK, true));
+        sleep(1);
+        CHECK(ioctl(fd_video, VIDEO_SELECT_SOURCE, VIDEO_SOURCE_MEMORY));
+        CHECK(ioctl(fd_video, VIDEO_PLAY));
+#endif // MP3SUPPORT
+
         CHECK(ioctl(fd_video, VIDEO_STOP, true));
         CHECK(ioctl(fd_audio, AUDIO_STOP, true));
         CHECK(ioctl(fd_video, VIDEO_CLEAR_BUFFER));

-- 
Stefan Huelswitt
huels@iname.com  | http://home.pages.de/~nathan



Home | Main Index | Thread Index