[MPlayer-dev-eng] [Suggested PATCH] Increase maximum ftp file path length

Alexander Strasser eclipse7 at gmx.net
Sun Nov 11 22:05:46 CET 2012


Alexander Strasser wrote:
> Alexander Strasser wrote:
> > Sergey wrote:
> > > I often use mplayer to watch video recordings from our local ftp
> > > server. And I noticed that mplayer is unable to show long ftp urls.
> > > I had to wget them and watch locally.
> > > 
> > > Steps to reproduce:
> > >   mplayer -v 'ftp://62.76.7.10/pub/Big Buck
> > > Bunny////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////big_buck_bunny_480p_stereo.avi'
> > > 
> > > It appeared that mplayer limits length of the ftp path to 256
> > > characters (actually it's about 200 chars), but for UTF file names
> > > it's almost 100 characters. That was not good.
> > 
> >   Thanks for looking into the problem. I share your opinion that the
> > buffer is too small for lots of not very unusual use cases (even more
> > so considering different cultural circumstances).
> > 
> > > Attached patch fixed the issue for me.
> > 
> >   Regarding the patch I agree with Xidorn's and Nicolas' comments. I
> > have started looking into that file and will try to implement a better
> > solution. I expect it will be available at the end of this week.
> 
>   I am sorry it will probably take a bit longer. I have something worked
> out but it is not ready for submission yet. I am still working on it and
> I hope I can send a patch soon.
> 
> >   It would be great if you could test it then.
> > 
> > [patch snipped]

  New patch set sent.

  I also attached a squashed version containing all changes of the 7 patches
to this mail. So it is easier for testers to apply.

  For review the patch set should be easier to read.

  Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-stream-ftp-long-filenames.diff
Type: text/x-diff
Size: 6739 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20121111/ef851056/attachment-0001.bin>


More information about the MPlayer-dev-eng mailing list