summaryrefslogtreecommitdiffstats
path: root/mp_msg.c
Commit message (Collapse)AuthorAgeFilesLines
* mp_msg: avoid mangling other output with status linereimar2010-11-021-0/+9
| | | | | | | | | Output a '\n' when printing a message after a status line to move the terminal to the next line instead of writing on top of the status one. Patch by Dan Oscarsson [Dan.Oscarsson tieto com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31691 b3059339-0415-0410-9bf9-f77b7e298cf2
* mp_msg.c: Avoid out-of-bounds read if empty string is printedreimar2010-11-021-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31626 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge svn changes up to r30732Uoti Urpala2010-03-101-8/+3
|\
| * Reset output color after each line.zuxy2010-02-231-0/+2
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30716 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Properly declare get_term_charset() instead of forward declaring it.diego2010-02-221-8/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30710 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30475Uoti Urpala2010-03-091-0/+18
|\|
| * Add license header to all top-level files missing them.diego2010-01-301-0/+18
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30471 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Remove pointless #ifdefs around harmless internal header #includes.diego2009-08-021-3/+2
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29471 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Add runtime translation supportUoti Urpala2010-03-081-1/+69
| | | | | | | | | | | | Add support for gettext-based runtime translations. Enabled with configure switch --enable-translation (no autodetection). Note that no translation files are installed yet.
* | Remove internal libass treeUoti Urpala2009-07-261-4/+11
| | | | | | | | | | Remove the libass/ directory and use the newest standalone version of the library instead.
* | Remove the internal GUIAnton Khirnov2009-07-071-13/+0
| | | | | | | | | | | | | | | | | | The GUI is badly designed and too closely coupled to the internal details of other code. The GUI code is in bad shape and unmaintained for years. There is no indication that anyone would maintain it in the future either. Even if someone did volunteer to implement a better integrated GUI having the current code in the tree probably wouldn't help much. So get rid of it.
* | Merge svn changes up to r29412Uoti Urpala2009-07-071-0/+7
|\|
| * Use a malloced string for the get_term_charset return value.reimar2009-05-311-0/+7
| | | | | | | | | | | | | | | | This is necessary at least on POSIX systems since the buffer returned by nl_langinfo may change its contents with e.g. each setlocale call. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29332 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-1/+1
| |
* | Add temporary no-op translation function stubsUoti Urpala2009-07-061-0/+5
|/
* Get rid of pointless 'extern' keywords.diego2008-12-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28085 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename font-related preprocessor directives.diego2008-08-071-5/+5
| | | | | | | Switch them from a HAVE_ to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27425 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename some preprocessor directives from CONFIG_* to HAVE_* where appropriate;diego2008-08-011-5/+5
| | | | | | | CONFIG_ prefix for configurable options, HAVE_ for system-dependent stuff. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27391 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename two GUI-related preprocessor directives:diego2008-07-301-3/+3
| | | | | | | HAVE_NEW_GUI --> CONFIG_GUI, HAVE_GTK2_GUI --> CONFIG_GTK2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27375 b3059339-0415-0410-9bf9-f77b7e298cf2
* Start unifying names of internal preprocessor directives.diego2008-07-301-5/+5
| | | | | | | | Replace all USE_ prefixes by CONFIG_ prefixes to indicate options which are configurable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable runtime control for colorful and/or module name outputzuxy2008-04-121-81/+92
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26402 b3059339-0415-0410-9bf9-f77b7e298cf2
* typo fix: inited --> initializeddiego2008-02-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25994 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove trailing whitespace.diego2007-12-171-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25431 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure forked code does not try to display a GTK message box (and thus ↵reimar2007-10-071-0/+1
| | | | | | crashes) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24717 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant extern variable declaration.diego2007-08-241-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24141 b3059339-0415-0410-9bf9-f77b7e298cf2
* Create a new MSGT for just the status line.diego2007-06-051-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23478 b3059339-0415-0410-9bf9-f77b7e298cf2
* Gui --> guidiego2007-04-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23095 b3059339-0415-0410-9bf9-f77b7e298cf2
* "()" to "(void)" function param list fixesuau2007-04-011-1/+1
| | | | | | | patch from Stefan Huehner, stefan huehner org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22904 b3059339-0415-0410-9bf9-f77b7e298cf2
* mp_msg.c is never built with -DCODECS2HTML.diego2007-03-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22535 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variable lev_text, patch by Zuxy Meng, zuxy.meng gmail com.diego2007-03-081-13/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22489 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add code to detect and convert to console codepage on Windows.reimar2007-03-041-11/+3
| | | | | | | Patch by Zuxy Meng [zuxy.meng at gmail com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22460 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle mp_msg_charset == NULL correctly in filename_recode.reimar2007-01-271-1/+2
| | | | | | | Patch by Vladimir Voroshilov - voroshil gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22024 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: remove tabs, almost all added during last patch, fromreimar2007-01-271-12/+12
| | | | | | | an otherwise tab-free file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22023 b3059339-0415-0410-9bf9-f77b7e298cf2
* filename double-conversion, especially usefull for CJK users :-)gpoirier2007-01-261-0/+31
| | | | | | | | | Patch by Zuxy Meng <zuxy.meng@gmail.com> date: Oct 25, 2006 2:20 AM subject: [MPlayer-dev-eng] [PATCH] Filename double-conversion git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22020 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix possible crashes with colorized mplayer outputreimar2006-12-181-3/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21669 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mixed up from and to charsets in iconv open failure message.reimar2006-08-271-1/+1
| | | | | | | Patch by Zuxy Meng zuxy.meng at gmail com. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19555 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get ride of the several if(identify) messy lines and rearangment of some of ↵reynaldo2006-04-241-0/+1
| | | | | | the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18238 b3059339-0415-0410-9bf9-f77b7e298cf2
* more cruftrfelker2006-03-301-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18001 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove deprecated, never-used gnu gettext cruft.rfelker2006-03-301-13/+0
| | | | | | | | | | | | proper runtime message catalogs will be added with catgets in the (near?) future. this resolves complaints about mp_msg printing crap at startup when gettext was (stupidly) enabled by default even though it was not useful. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17999 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l missing header for strdupods152006-03-271-0/+1
| | | | | | | mp_msg.c:103: warning: assignment makes pointer from integer without a cast git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17973 b3059339-0415-0410-9bf9-f77b7e298cf2
* The fix in mp_msg.c avoids a core dump when iconv_open() fails, the otheralbeu2006-03-241-0/+5
| | | | | | | | | just makes it possible to compile if USE_ICONV is undefined. Patch by Bjorn Sandell (biorn _At_ chalmers _Dot_ se). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17932 b3059339-0415-0410-9bf9-f77b7e298cf2
* Automaticall convert message to console charset, use utf8 for GTK2 Guireimar2006-03-081-0/+49
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17773 b3059339-0415-0410-9bf9-f77b7e298cf2
* Comment fix: mp_msg_levels[] is inited to -2, not 2.diego2006-03-051-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17743 b3059339-0415-0410-9bf9-f77b7e298cf2
* This now works correctly thanks to clear-to-end-of-line patchods152006-02-241-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17673 b3059339-0415-0410-9bf9-f77b7e298cf2
* Patch by Stefan Huehner / stefan % huehner ! org \rathann2006-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | patch replaces '()' for the correct '(void)' in function declarations/prototypes which have no parameters. The '()' syntax tell thats there is a variable list of arguments, so that the compiler cannot check this. The extra CFLAG '-Wstrict-declarations' shows those cases. Comments about a similar patch applied to ffmpeg: That in C++ these mean the same, but in ANSI C the semantics are different; function() is an (obsolete) K&R C style forward declaration, it basically means that the function can have any number and any types of parameters, effectively completely preventing the compiler from doing any sort of type checking. -- Erik Slagter Defining functions with unspecified arguments is allowed but bad. With arguments unspecified the compiler can't report an error/warning if the function is called with incorrect arguments. -- Måns Rullgård git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
* MPLAYER_VERBOSE, new enviorment variable to control verbosity before initods152006-01-201-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17441 b3059339-0415-0410-9bf9-f77b7e298cf2
* Some more cola for msglevel, codec-cfg can't even call mp_msg_init or it'llods152005-12-071-3/+3
| | | | | | | print bogus stuff. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17121 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000l, reverting 2 more unrelated changes with last commitods152005-12-061-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17109 b3059339-0415-0410-9bf9-f77b7e298cf2
* new -msglevel option, constrols msg level for every msg moduleods152005-12-061-13/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17107 b3059339-0415-0410-9bf9-f77b7e298cf2
* mp_msg cleanup.ods152005-09-291-80/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16619 b3059339-0415-0410-9bf9-f77b7e298cf2
* improve colorizationmichael2005-09-031-4/+65
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16380 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove many annoying GTK includes in every compile line and remove GTKods152005-09-031-21/+2
| | | | | | | stuff from mp_msg by using a wrapper function. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16375 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove all setlocale calls, they break the behaviour of sscanf andreimar2005-01-201-1/+0
| | | | | | | | strcasecmp, especially with tr_TR locale - and do not seem to be good for anything. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14543 b3059339-0415-0410-9bf9-f77b7e298cf2
* force a new line if a message is very longpl2003-09-121-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10854 b3059339-0415-0410-9bf9-f77b7e298cf2
* moved some annonying messages to debug mode onlyalex2003-07-131-2/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10416 b3059339-0415-0410-9bf9-f77b7e298cf2
* codec-cfg cannot be built when the gui is enabled - it fails to link with ajkeil2002-12-271-3/+11
| | | | | | | | | couple of undefined external references. Problem is that mp_msg.c is included in the codec-cfg binary, but for codec-cfg the gui code in mp_msg.c shouldn't be compiled in. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8574 b3059339-0415-0410-9bf9-f77b7e298cf2
* WARNING message gui windows disabled, the only critical warn message (tooarpi2002-08-311-0/+5
| | | | | | | slow) moved to ERROR git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7206 b3059339-0415-0410-9bf9-f77b7e298cf2
* - warnings enabled for GUI modearpi2002-08-311-3/+21
| | | | | | | - color mode (color depends on msg level), disabled by default git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7201 b3059339-0415-0410-9bf9-f77b7e298cf2
* print only fatal/error/warning to stderr, others go to stdoutarpi2002-08-311-7/+6
| | | | | | | (actually reversed Nick's r1.10 commit) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7196 b3059339-0415-0410-9bf9-f77b7e298cf2
* new v4l capture patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>:arpi2002-08-211-0/+5
| | | | | | | | | | | | | - multithreaded audio/video buffering (I know mplayer crew hates threads but it seems to me as the only way of doing reliable a/v capture) - a/v timebase synchronization (sample count vs. gettimeofday) - "immediate" mode support for mplayer - fixed colorspace stuff - RGB?? and YUY2 modes now work as expected - native ALSA audio capture - separated audio input layer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7059 b3059339-0415-0410-9bf9-f77b7e298cf2
* Extend maximum mp_msg message size, some translations need it or help ↵atmos42002-06-051-3/+6
| | | | | | message will be cutted. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6307 b3059339-0415-0410-9bf9-f77b7e298cf2
* HAVE_MENCODER->FOR_MENCODER (forgot to commit some weeks ago...)arpi2002-05-121-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6049 b3059339-0415-0410-9bf9-f77b7e298cf2
* some bug fixpontscho2002-05-011-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5920 b3059339-0415-0410-9bf9-f77b7e298cf2
* disabling gtk messagebox - fixes gtk crashesarpi2002-04-291-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5902 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l - va_start needs teh pointer to stack - not the translated messagearpi2002-03-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5287 b3059339-0415-0410-9bf9-f77b7e298cf2
* splitted mp_msg_init and mp_msg_set_level and added i18n support to initalex2002-03-201-1/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5221 b3059339-0415-0410-9bf9-f77b7e298cf2
* added i18n supportalex2002-03-151-1/+36
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5103 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use stdout as default mencoder's output if no filename specifiednick2002-02-281-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4889 b3059339-0415-0410-9bf9-f77b7e298cf2
* small gtk bug fix (-display bug, baze gabu, miattad fogok elkarhozni:), and ↵pontscho2002-01-151-1/+1
| | | | | | remove gui dependencie in mencoder git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4177 b3059339-0415-0410-9bf9-f77b7e298cf2
* fflush disappeared? .so?arpi2001-12-271-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3781 b3059339-0415-0410-9bf9-f77b7e298cf2
* msg limit increasedarpi2001-12-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3294 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanuparpi2001-09-261-25/+19
| | | | git-svn-id: svn://s