~medibuntu-maintainers/mplayer/medibuntu.precise

« back to all changes in this revision

Viewing changes to command.c

  • Committer: Gauvain Pocentek
  • Date: 2012-03-06 11:59:12 UTC
  • mfrom: (66.1.15 precise)
  • Revision ID: gauvain@pocentek.net-20120306115912-h9d6kt9j0l532oo5
* Merge from Ubuntu:
  - put back faac support
  - recommends apport-hooks-medibuntu
  - change Maintainer, Uploaders & Vcs-* fields.
* New upstream snapshot
* upload to unstable
* Build against external libmpeg2
* drop 51_FTBFS_arm.patch again
* no longer build depend on libcdparanoia-dev on the Hurd
* Fix FTBFS on the hurd.
  Thanks to Samuel Thibault <sthibault@debian.org> (Closes: #654974)
* Fix FTBFS on arm
* New upstream snapshot, Closes: #650339, #643621, #481807
* Imported Upstream version 1.0~rc4+svn34492
* Bump standards version
* Bump dependency on libav >= 4:0.8~, Closes: #653887
* Fix build-indep
* Build mplayer-gui again, Closes: #568514
* Drop debian/all-lang-config-mak.sh, no longer needed
* include .dfsg1 in version number
* remove get-orig-source target
* no longer prune compiler flags from the environment
* No longer advertise nor build 3fdx, mga and dxr3 backends,
  Closes: #496106, #442181, #533546
* beautify mplayer version identification string
* Brown paperbag upload.
* Next try to fix build failure on sparce after recent binutils change.
* Brown paperbag upload.
* Really fix build failure on sparc after recent binutils change.
* Properly set Replaces/Conflicts on mplayer2{,-dbg} to avoid
  file overwrite errors.
* Adjust versioning of mplayer listed in the mplayer-dbg's Depends field.
* Fix build failure on sparc after recent binutils change.
* Urgency medium bumped because of RC-level bugfix
  and speeding up x264 transition.
* Update to my @debian.org email.
* Upload to unstable
* Enable joystick support on Linux only, Closes: #638408
* Rebuild fixes toolchain issue on arm, Closes: #637077
* New upstream snapshot
* following the discussion started by Diego Biurrun <diego@biurrun.de>
  in debian-devel, I have prepared a new packaging of 'mplayer'
  (with code that comes from CVS)
* the upstream tar.bz cannot be distributed by Debian, since it contains
   CSS code; so I am repackaging it 
* I have tried my best to address all known issues:
  - the package contains the detailed Copyright made by Diego Biurrun 
  - the package does not contain CSS code, or  AFAIK other code on which 
     there is active patent enforcement
  - there is a script  debian/cvs-changelog.sh  that shows all changes
     done to files included in this source.
    This should comply with GPLv2 sec 2.a  (in spirit if not in letter)
    For this reason, the source code contains CVS directories.
* needs   make (>= 3.80) for 'html-chunked-$(1)' in DOCS/xml/Makefile

* some corrections, as suggested Diego Biurrun
  - binary codecs should go into /usr/lib/codecs (upstream default)
  - better template 'mplayer/install_codecs'
  - an empty 'font=' in mplayer.conf breaks mplayer: postinst corrected
* correction in 'mplayer/cfgnote'
* better mplayer.postinst and mplayer.config

* New upstream release
* better debian/copyright file
* do not ship a skin
* New upstream release
* changed DEB_BUILD_OPTIONS to DEB_BUILD_CONFIGURE ,
  DEB_BUILD_OPTIONS is used as in debian policy
* use gcc-3.4
* changed xlibs-dev to a long list of dependencies, for Debian/etch
* try to adhere to  http://www.mplayerhq.hu/DOCS/tech/binary-packaging.txt
  (see README.Debian for details)
* removed dependency on xlibmesa-dev, disabled opengl
* New upstream release
* Simon McVittie <hacks@pseudorandom.co.uk> wonderful work:
- Work around Debian bug #267442 (glibc's sys/uio.h and gcc's altivec.h have
  conflicting uses for __vector) by re-ordering #includes
- Fix potential symlink attack in ./configure
- Disable support for binary codecs on platforms for which those codecs
  aren't available; also disable the corresponding Debconf note when it's
  inappropriate
- Changed Build-Depends: so it works in pbuilder
- Explicitly build-depend on libjpeg62-dev, libfontconfig1-dev,
  libungif4-dev 
- Tweak debian/rules to avoid certain errors being ignored
- Use --language=all
* provide a target  'debian/rules get-orig-source' 
  that recreates the orig.tar.gz ; then use the above orig.tar.gz
* rewrote some parts of debian/rules
* don't clean and recompile docs if upstream ships them
* mplayer-doc was shipping too much stuff
* translated man pages where not installed properly
* compile with libdv4-dev
* correct README.Debian
* Forgot build-dep on libtheora
* Must not depend on libxvidcore
* New upstream release
* new release.
* rc1 to become 0.90
* new pre-release
* new pre-release
* gtk bug fixed.
* new release.
* version bumped
* 0.60 pre2 release
* 0.60 pre-release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "libmpdemux/demuxer.h"
29
29
#include "libmpdemux/stheader.h"
30
30
#include "codec-cfg.h"
 
31
#include "mp_msg.h"
31
32
#include "mplayer.h"
32
33
#include "sub/sub.h"
33
34
#include "m_option.h"
214
215
}
215
216
 
216
217
 
217
 
/// \defgroup Properties
 
218
/// \defgroup properties Properties
218
219
///@{
219
220
 
220
221
/// \defgroup GeneralProperties General properties
514
515
    return M_PROPERTY_OK;
515
516
}
516
517
 
 
518
/// Number of titles in file
 
519
static int mp_property_titles(m_option_t *prop, int action, void *arg,
 
520
                              MPContext *mpctx)
 
521
{
 
522
    if (!mpctx->demuxer)
 
523
        return M_PROPERTY_UNAVAILABLE;
 
524
    if (mpctx->demuxer->num_titles == 0)
 
525
        stream_control(mpctx->demuxer->stream, STREAM_CTRL_GET_NUM_TITLES, &mpctx->demuxer->num_titles);
 
526
    return m_property_int_ro(prop, action, arg, mpctx->demuxer->num_titles);
 
527
}
 
528
 
517
529
/// Number of chapters in file
518
530
static int mp_property_chapters(m_option_t *prop, int action, void *arg,
519
531
                               MPContext *mpctx)
1075
1087
    case M_PROPERTY_STEP_DOWN:
1076
1088
#ifdef CONFIG_GUI
1077
1089
        if (use_gui)
1078
 
            guiGetEvent(guiIEvent, (char *) MP_CMD_VO_FULLSCREEN);
 
1090
            gui(GUI_RUN_COMMAND, (void *) MP_CMD_VO_FULLSCREEN);
1079
1091
        else
1080
1092
#endif
1081
1093
        if (vo_config_count)
2141
2153
     M_OPT_MIN, 0, 0, NULL },
2142
2154
    { "chapter", mp_property_chapter, CONF_TYPE_INT,
2143
2155
     M_OPT_MIN, 0, 0, NULL },
 
2156
    { "titles", mp_property_titles, CONF_TYPE_INT,
 
2157
     0, 0, 0, NULL },
2144
2158
    { "chapters", mp_property_chapters, CONF_TYPE_INT,
2145
2159
     0, 0, 0, NULL },
2146
2160
    { "angle", mp_property_angle, CONF_TYPE_INT,
2495
2509
    }
2496
2510
    return "UNKNOWN";
2497
2511
}
 
2512
///@}
2498
2513
 
2499
2514
static void remove_subtitle_range(MPContext *mpctx, int start, int count)
2500
2515
{
2558
2573
static void overlay_add(char *file, int id, int x, int y, unsigned col)
2559
2574
{
2560
2575
    FILE *f;
2561
 
    unsigned w, h, bpp, maxval;
 
2576
    int w, h, bpp, maxval;
2562
2577
    uint8_t *data;
2563
2578
    struct mp_eosd_image *img;
2564
2579
 
2801
2816
                    int i = 0;
2802
2817
                    if (n > 0)
2803
2818
                        for (i = 0; i < n; i++)
2804
 
                            uiNext();
 
2819
                            gui(GUI_RUN_COMMAND, (void *)MP_CMD_PLAY_TREE_STEP);
2805
2820
                    else
2806
2821
                        for (i = 0; i < -1 * n; i++)
2807
 
                            uiPrev();
 
2822
                            gui(GUI_RUN_COMMAND, (void *)-MP_CMD_PLAY_TREE_STEP);
2808
2823
                } else
2809
2824
#endif
2810
2825
                {
2966
2981
#ifdef CONFIG_GUI
2967
2982
            // playtree_iter isn't used by the GUI
2968
2983
            if (use_gui)
2969
 
                uiStop();
 
2984
                gui(GUI_RUN_COMMAND, (void *)MP_CMD_STOP);
2970
2985
            else
2971
2986
#endif
2972
2987
            // Go back to the starting point.
3509
3524
        break;
3510
3525
 
3511
3526
        default:
 
3527
#ifdef CONFIG_GUI
 
3528
                if (use_gui && cmd->id == MP_CMD_GUI)
 
3529
                    gui(GUI_RUN_MESSAGE, cmd->args[0].v.s);
 
3530
                else
 
3531
#endif
3512
3532
                mp_msg(MSGT_CPLAYER, MSGL_V,
3513
3533
                       "Received unknown cmd %s\n", cmd->name);
3514
3534
        }