summaryrefslogtreecommitdiffstats
path: root/command.c
Commit message (Collapse)AuthorAgeFilesLines
* Also handle ASS subtitles when removing subtitles via sub_remove slave command.reimar2010-01-221-0/+15
| | | | | | | | Fixes memory leaks and other strange behaviour like mismatch of name and subtitle data. Based on patch by Yuriy Kaminskiy [yumkam mail ru]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30387 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid duplicating code to remove subtitles (sub_remove slave command).reimar2010-01-221-38/+41
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30386 b3059339-0415-0410-9bf9-f77b7e298cf2
* Return the actually playing audio/video id for get_property, not the onereimar2009-12-271-12/+12
| | | | | | | | selected e.g. via commandline (which resulted in -1 being returned most of the time). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30124 b3059339-0415-0410-9bf9-f77b7e298cf2
* Subtitle are now also available without video, so remove thatreimar2009-12-271-3/+0
| | | | | | | check from the subtitle property handling. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30122 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use the same condition to decide if the audio/video id property isreimar2009-12-271-12/+4
| | | | | | | not available for all commands (get, set and print). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30121 b3059339-0415-0410-9bf9-f77b7e298cf2
* When setting audio or video track make sure we will not try toreimar2009-12-271-2/+4
| | | | | | | dereference a NULL pointer, e.g. because there is no video stream. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30120 b3059339-0415-0410-9bf9-f77b7e298cf2
* Print a ANS_ERROR reply if one of the *_property slave command fails.reimar2009-12-271-2/+25
| | | | | | | Based on patch by Adrian Stutz [adrian sttz ch]. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30119 b3059339-0415-0410-9bf9-f77b7e298cf2
* Never include ass.h and ass_types.h directly, use ass_mp.h instead.reimar2009-12-191-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30067 b3059339-0415-0410-9bf9-f77b7e298cf2
* Show OSD message when enabling/disabling de-interlacing.cehoyos2009-11-141-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29912 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid modifying dvdsub_id in command.c where possible.reimar2009-11-111-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29895 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure the teletext property stuff does not crash if no demuxer is available.reimar2009-11-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29862 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove CONFIG_TV_TELETEXT.cehoyos2009-11-071-10/+0
| | | | | | | | DVB teletext support is nearly finished, it will be possible to read teletext from file, it will not be depending on reception any more. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29851 b3059339-0415-0410-9bf9-f77b7e298cf2
* Separate teletext from tv support.cehoyos2009-11-071-19/+18
| | | | | | | Path by Francesco Lavra, francescolavra interfree it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29848 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move teletext specific code from stream into libmpcodecs.cehoyos2009-10-291-0/+1
| | | | | | | Patch by Francesco Lavra, francescolavra interfree it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29801 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make update_subtitles work without sh_video for text subtitles.reimar2009-09-231-1/+6
| | | | | | | | | This fixes a crash with e.g. auto-enabled subtitles and -novideo due to command.c calling update_subtitles even without video and is a step toward subtitle support for audio-only files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29710 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make indentation consistent with the rest of the filereimar2009-09-081-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29659 b3059339-0415-0410-9bf9-f77b7e298cf2
* Never switch to a program with no audio and no video.reimar2009-09-081-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29658 b3059339-0415-0410-9bf9-f77b7e298cf2
* Only #include stream/stream_dvd.h when libdvdread is enabled.diego2009-08-031-0/+2
| | | | | | | | stream_dvd.h #includes some system headers that may be unavailable. Fixes compilation with libdvdread disabled. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29475 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless #ifdefs around harmless internal header #includes.diego2009-08-021-16/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29471 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make set_property chapter 0-based like all other chapter-relatedreimar2009-06-281-2/+2
| | | | | | | property functions. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29407 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not use MAX_A/V_STREAMS as upper limit for switch_audio/switch_videoreimar2009-06-201-2/+2
| | | | | | | | They take the stream id as argument, which is not necessarily the same as the as the index in the streams array and can be larger. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29375 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
* command.c: Fix some commands crashing during audio-only playbackuau2009-01-311-0/+4
| | | | | | | | | | The SWITCH_RATIO and VF_CHANGE_RECTANGLE cases crashed if the user gave those commands when there was no video stream. Make them no-op instead. Patch by ShadowJK git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28403 b3059339-0415-0410-9bf9-f77b7e298cf2
* Print ID_EXIT and exit reason message in identify mode when exiting.reimar2008-12-021-1/+1
| | | | | | | Patch by rvm [rvm3000 ya com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28066 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disallow the modification of teletext properties when the tv demuxer isfaust32008-10-271-0/+2
| | | | | | | not active. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27840 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use the existing pt_iter_goto_head function instead of reimplementing itreimar2008-10-011-2/+2
| | | | | | (incorrectly). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27682 b3059339-0415-0410-9bf9-f77b7e298cf2
* mpctx->playtree is a node, files can not be directly appended to it,reimar2008-10-011-2/+2
| | | | | | append them to its child instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27681 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a "pause" property to allow checking if MPlayer is paused.reimar2008-10-011-0/+8
| | | | | | Behaviour without pausing_keep_force prefix is a bit weird. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27680 b3059339-0415-0410-9bf9-f77b7e298cf2
* slave command to get the number of chapters; patch by Kevin DeKorte - ↵nicodvb2008-09-261-0/+13
| | | | | | kdekorte gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27667 b3059339-0415-0410-9bf9-f77b7e298cf2
* handle the lavfpref demuxer in the same way as the lavf oneaurel2008-08-271-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27489 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename font-related preprocessor directives.diego2008-08-071-3/+3
| | | | | | | Switch them from a HAVE_ to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27425 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix wrong behavior with slave command by going back to the starting pointben2008-08-071-0/+4
| | | | | | | | | of the play_tree to pop all existing configurations. Patch by Mathieu Schroeter <mathieu dot schroeter at gamesover dot ch>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27424 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetic: reindent after r27414ben2008-08-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27415 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fixes unsafe 'chapter' command with get_property() call.ben2008-08-041-1/+2
| | | | | | | | | Without it, MPlayer segv trying to dereference NULL demuxer. Patch by Mathieu Schroeter (mathieu dot schroeter at gamesover dot ch) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27414 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetic: reindent after r27412ben2008-08-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27413 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fixes unsafe 'angle' command with get_property() call.ben2008-08-041-1/+2
| | | | | | | | | Without it, MPlayer segv trying to dereference NULL demuxer. Patch by Mathieu Schroeter (mathieu dot schroeter at gamesover dot ch) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27412 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fixes unsafe 'switch_audio' command with set_property() call.ben2008-08-041-0/+2
| | | | | | | | | Without it, MPlayer segv trying to dereference NULL demuxer. Patch by Mathieu Schroeter (mathieu dot schroeter at gamesover dot ch) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27411 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change a bunch of video/audio-output-specific preprocessor directives fromdiego2008-08-031-21/+21
| | | | | | | a HAVE_ prefix to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27402 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename preprocessor directive HAVE_MENU --> CONFIG_MENU.diego2008-07-301-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27377 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename two GUI-related preprocessor directives:diego2008-07-301-4/+4
| | | | | | | 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-31/+31
| | | | | | | | 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
* Keep old dvdnav sub-command options for a while in orderben2008-06-201-0/+13
| | | | | | | | not to break slave-mode API too suddenly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27101 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change DVDNAV command key names.ben2008-06-191-1/+25
| | | | | | | | Parameters now use a string much more intuitive than previous int value. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27100 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename some functions as they are mplayer related and notben2008-06-071-2/+2
| | | | | | | | from libdvdnav public API. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27018 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a slave command to stop stream playback.ben2008-05-271-0/+5
| | | | | | | | | Mostly useful when used with -idle mode. Patch by Mathieu Schroeter ( mathieu dot schroeter at gamesover dot ch ) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26909 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove useless parentheses from return statements.diego2008-05-161-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26791 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary includesuau2008-04-011-2/+0
| | | | | | | | | | command.c: Don't include libmpcodecs/mp_image.h, libmpdemux/matroska.h mplayer.c: Don't include libmpdemux/matroska.h matroska.h: Remove declaration of already removed function demux_mkv_change_subs and stop including demuxer.h git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26313 b3059339-0415-0410-9bf9-f77b7e298cf2
* Include some .h files in corresponding .c filesuau2008-03-281-0/+1
| | | | | | | | | Include the corresponding .h file in command.c, parser-cfg.c and parser-mpcmd.c. This allows the compiler to check that the declarations in the .h file match the actual defition. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26295 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing #include.eugeni2008-02-291-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26127 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fill sh_sub_t.lang in lavf, mkv and ogg demuxers. Use it for printing subtitleeugeni2008-02-291-21/+7
| | | | | | | track language. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26116 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fill sh_audio_t.lang in lavf and mkv demuxers. Use it for printing audio trackeugeni2008-02-291-2/+3
| | | | | | | language when available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26115 b3059339-0415-0410-9bf9-f77b7e298cf2
* typo fix: inited --> initializeddiego2008-02-141-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25994 b3059339-0415-0410-9bf9-f77b7e298cf2
* show dvdnav selection in the OSD only when the osd_level>1; patch by foxcore ↵nicodvb2008-01-291-2/+2
| | | | | | gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25915 b3059339-0415-0410-9bf9-f77b7e298cf2
* More places that should use SEEK_ABSOLUTE / SEEK_FACTORreimar2008-01-291-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25912 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify a condition that probably is not necessary at allreimar2008-01-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25906 b3059339-0415-0410-9bf9-f77b7e298cf2
* reindent after r25881ben2008-01-271-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25882 b3059339-0415-0410-9bf9-f77b7e298cf2
* sub_scale command can now handle both ass and non-ass subs at a timeben2008-01-271-8/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25881 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for dvdnav still frames playback.ben2008-01-261-6/+2
| | | | | | | | | | | Based on various patches from Otvos Attila and MPlayer'ized by me. N.B. Always use -vc ffmpeg12 with dvdnav:// git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25852 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add new command to switch between dvdnav titlesben2008-01-241-0/+6
| | | | | | | | Based on parts of dvdnav monster patches from Otvos Attila git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25845 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetic: reindent code after r25843ben2008-01-231-7/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25844 b3059339-0415-0410-9bf9-f77b7e298cf2
* sub_scale command now works with ass subtitles rendererben2008-01-231-0/+27
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25843 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add ass_use_margins command and property to shift subtitles to margins and backeugeni2008-01-231-0/+28
| | | | | | | on the fly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25842 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make mp_properties constreimar2008-01-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25745 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove global_ass_track. Instead create an ass_track for each 't' track.eugeni2008-01-111-1/+1
| | | | | | | | Global_ass_track obviously can not work when there is more than one 't tracks, their lines will be mixed up. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25684 b3059339-0415-0410-9bf9-f77b7e298cf2
* Clear demuxed data when subtitle track is changed.eugeni2008-01-101-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25667 b3059339-0415-0410-9bf9-f77b7e298cf2
* properties to get and set angle; patch by oattila chello hunicodvb2008-01-051-0/+64
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25605 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix property audio_delay bug when step up/down with arg value NULL.ulion2008-01-051-5/+5
| | | | | | | Original patched by Davide Capodaglio <davidecapod A inwind P it>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25595 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add some const/static qualifiers as appropriatereimar2007-12-241-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25523 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check availability before check argument for getting gamma properties.ulion2007-12-221-7/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25493 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert to r25490, since the r25491 is not correct.ulion2007-12-221-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25492 b3059339-0415-0410-9bf9-f77b7e298cf2
* Combine code for check availability of property audio(id).ulion2007-12-221-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25491 b3059339-0415-0410-9bf9-f77b7e298cf2
* Combine common code for check whether chapter is available.ulion2007-12-221-12/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25490 b3059339-0415-0410-9bf9-f77b7e298cf2
* OSD menu support mouse selection.ulion2007-12-221-0/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/m