Commit Graph

39 Commits

Author SHA1 Message Date
diego ea6c00a4b6 Add standard GPL headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28147 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-13 18:40:19 +00:00
ben 9e0e5b028c fixes two bugs:
1. doesn't add \ before spaces when showing dirname in interface title.
2. when replace_path() string is to be parsed by input command,
I assume that the path is to be run in shell,
and I do special escaping of 'into \'\\\'\'

(tested useful and ok with geexbox for last 3 years ...)



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27118 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-20 20:36:05 +00:00
ben a3e6050aa1 Removed unused freepath variable.
Patch by Guillaume Lecerf <foxcore at gmail com>



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27002 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-06 23:24:39 +00:00
ben 45509b2576 Remove useless braces on if() statement.
Patch by Guillaume Lecerf <foxcore at gmail com>



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26993 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-05 19:47:04 +00:00
ben 8d4cdcc158 Ensure 'path' string is 0 terminated.
Patch by Guillaume Lecerf <foxcore at gmail com>



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26992 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-05 19:46:16 +00:00
diego 15525ae9aa Use size_t instead of int for a variable that is compared to the result
of strlen. Fixes a warning about signed and unsigned comparison.
patch by Guillaume LECERF, foxcore gmail com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26977 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-03 22:35:02 +00:00
ulion 73f51e7f78 Deny the code using realpath().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25660 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 12:44:17 +00:00
ulion 61f55e9fd7 Default use the dir where the current playing file located if path not set.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25556 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-31 01:20:50 +00:00
ulion 1fbd5fb5f4 Remove redundant option 'auto-close' from cmdlist and filesel.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25533 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-28 03:45:01 +00:00
ulion b6870cc5ba From now on, libmenu does not steal all input keys from input modules.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25530 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-26 13:13:48 +00:00
ben b79af69ae4 reverted r25323: deprecated by ulion's recent patches
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25382 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-12 19:26:55 +00:00
ulion eb7b516694 Support to run multiple mplayer commands set in menu.conf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25348 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 08:11:21 +00:00
ulion 03607113cb Fix mylstat() call to parent dir where the subdir has no exec permission.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25339 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-10 14:12:40 +00:00
ulion 7607259ea4 Combine common code for dealing with file action and dir action.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25328 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-09 10:32:05 +00:00
ulion af43903635 Use recorded last path only when stat it ok.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25327 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-09 07:50:37 +00:00
ben 486e5b2c2b identifiers starting with an underscore are reserved by the C standard
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25325 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-08 23:21:08 +00:00
ben b4052eae79 rework of libmenu open_dir()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25323 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-08 16:27:25 +00:00
ulion a986e2a1f6 Remove hardcoded key->cmd bindings in libmenu, support custom key bindings
by menu config file.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25291 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-04 10:42:59 +00:00
ulion 88f37769f2 Fix code to make sure the browse starting path within the menu-chroot path.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25162 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-26 00:28:05 +00:00
ben c31274e8b4 new -menu-chroot option that prevent OSD file selection menu to go to an unwanted location (yeah, chroot ;-))
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23409 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-29 18:49:38 +00:00
ben db48d5baff new -menu-keepdir option that allows libmenu file browser to always restart browsing from the last place we were instead of current dir
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23247 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-07 16:46:24 +00:00
reimar 9774de4be4 Handle windows path separator in filesel menu.
Fixes at least partially bug #494


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20521 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-29 21:10:59 +00:00
ben 7764a187e0 added new filter option to menu file browser to only display some files according to extension
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19497 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-22 20:55:49 +00:00
ben 31b58afd88 support multiple actions in menu's file browser using key bindings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19496 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-22 19:59:53 +00:00
diego 77b4259600 Explicitly include libmpcodecs/img_format.h and libvo/fastmemcpy.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19437 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-18 13:58:03 +00:00
reynaldo bf25812a43 Part1 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17995 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-30 06:40:58 +00:00
albeu 0e38597ae8 Allow 6 ways (up/down/left/right/ok/cancel) navigation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17946 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-03-25 17:32:10 +00:00
diego 5aba6c3cfd Unify include paths, -I.. is in CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16863 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-26 00:07:43 +00:00
aurel e190bcd2bb add some closedir() to fix some opendir() leaks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16062 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-22 22:52:13 +00:00
albeu 38a2fa46fd I've juste found a bug which prevent to load a file whose name contain
a quote ('). The menu simply execute a "loadfile '%p'" but when the %p
is replaced by the actual value, quotes in it are not escaped !
Moreover, mp_input_parse_cmd contain some code to unescape strings but
this code was placed after the string was copied in his final buffer.

So this patch correct this issue.

By Aurélien Jacobs


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10625 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-08-15 18:45:35 +00:00
arpi 7ff83a7181 linux->osdep
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9381 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-09 20:18:23 +00:00
arpi cbe52ff6e4 lstat->stat
found by Sebastian Kapfer <sebastian_kapfer@web.de>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9250 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-03 09:33:22 +00:00
arpi 9e46271417 Also attached some cleanup to menu_filesel.c, mainly to make it more
robust in case of lack of memory.
patch by Björn Sandell <biorn@dce.chalmers.se>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9105 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-26 16:03:16 +00:00
arpi 61ff1d4a53 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8854 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-09 18:06:32 +00:00
arpi 90e4cb1c23 some 10l bugfixes
patch by Christian Ohm <chr.ohm@gmx.net>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8614 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-12-28 14:19:07 +00:00
arpi 5c59d9a81d No scandir() an no functions defined within other functions.
patch by Björn Sandell <biorn@dce.chalmers.se>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8359 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-12-04 23:41:04 +00:00
jkeil c126f8b49e limits.h required to get a PATH_MAX definition (on solaris)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8292 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-26 18:54:23 +00:00
albeu 2e4fa3c937 quote the filenames
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8227 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-18 00:14:17 +00:00
albeu c83ebc0b7d OSD menus initial version
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8198 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-14 23:47:11 +00:00