[MPlayer-users] MKV seek problem on Mac OSX
Jonathan Hedrick
jdhedrick at verizon.net
Mon Feb 27 00:50:02 CET 2006
Yes, the patch works great. No seeking problems at all. Thanks!
Jon
On Feb 26, 2006, at 1:53 PM, Corey Hickey wrote:
> Jonathan Hedrick wrote:
>> Using a recent build from the CVS (9pm EST on Sat) I'm having
>> problems seeking in .mkv files. I also had this problem w/
>> yesterday's CVS build. What happens is when I try to seek through the
>> file, the first 1-2 mins will be seek-able, and then I'll hit a
>> "bumper" where I can't seek past a certain point. I know these are
>> good .mkv files, because with an old build of MPlayer they are fine.
>>
>> I reported this on #mplayerdev, and was told that a recent patch is
>> probably to blame. AVI's and OGM's seek perfectly fine. Also I can
>> specify a time to start the file with the -ss switch. However even if
>> I start at 0:05:00 mins into the file, I'll hit the same 1-2min
>> problem if I try to seek. MPlayer doesn't seem to output any errors
>> concerning this to the console. And the MKVs _play_ perfectly fine.
>
> Can you try the attached patch? If it works, then the breakage was
> my fault.
>
> I'll probably apply the patch to CVS in 24 hours.
>
> -Corey
> Index: libmpdemux/demux_mkv.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.c,v
> retrieving revision 1.54
> diff -u -r1.54 demux_mkv.c
> --- libmpdemux/demux_mkv.c 4 Jan 2006 12:05:15 -0000 1.54
> +++ libmpdemux/demux_mkv.c 26 Feb 2006 18:43:38 -0000
> @@ -2078,7 +2078,7 @@
> return 0;
> }
>
> -static void demux_mkv_seek (demuxer_t *demuxer, float
> rel_seek_secs, int flags);
> +static void demux_mkv_seek (demuxer_t *demuxer, float
> rel_seek_secs, float audio_delay, int flags);
>
> /** \brief Given a matroska track number and type, find the id
> that mplayer would ask for.
> * \param d The demuxer for which the subtitle id should be
> returned.
> @@ -2351,7 +2351,7 @@
> mkv_d->has_first_tc = 1;
> }
> demux_mkv_seek (demuxer,
> - mkv_d->chapters[dvd_chapter-1].start/
> 1000.0, 1);
> + mkv_d->chapters[dvd_chapter-1].start/
> 1000.0, 0.0, 1);
> }
> }
>
> @@ -3126,7 +3126,7 @@
> }
>
> static void
> -demux_mkv_seek (demuxer_t *demuxer, float rel_seek_secs, int flags)
> +demux_mkv_seek (demuxer_t *demuxer, float rel_seek_secs, float
> audio_delay, int flags)
> {
> free_cached_dps (demuxer);
> if (!(flags & 2)) /* time in secs */
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
More information about the MPlayer-users
mailing list