[MPlayer-dev-eng] [PATCH] Make mplayer able to handle directories

theo theocrite at theocrite.org
Thu Mar 10 10:19:11 CET 2011


Please find attached a patch that makes mplayer able to recursively add
files within a directory (or within the directories within) to the

That is I can now do:
  mplayer -shuffle $HOME/music
instead of zsh's
  mplayer -shuffle $HOME/music/**
  mplayer -shuffle $HOME/music/* $HOME/music/*/* $HOME/music/*/*/* etc.
  mplayer -shuffle $(find -type f $HOME/music)
on other shells. But the later sometimes conflicts with the ability to
command mplayer with the keyboard.

I'm not aware of it breaking anything. It seems to work for me in my
everyday usage.

I tried to do my best to respect the indentation. But the original
source code itself was not homogeneous. So, as I'm not aware of a page
describing how the code should be written (except the patches.txt in
the tech folder), I tried to follow the neared local convention.

That's my first attempt to make a patch for mplayer, and I didn't write
anything in C for years. So please let me know if I did something
wrong. I'll be more than happy to correct improve it.
Freely yours,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-handle-dirs.diff
Type: text/x-diff
Size: 6447 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20110310/d6703d0b/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20110310/d6703d0b/attachment.pgp>

More information about the MPlayer-dev-eng mailing list