~ubuntu-branches/ubuntu/quantal/smplayer/quantal

« back to all changes in this revision

Viewing changes to src/mplayerprocess.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-02-16 11:51:44 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120216115144-hkpz36a4h5f3x9w3
Tags: 0.7.0-1
* Team upload.
* New upstream release (Closes: #655125):
  - Changes since 0.6.10:
    + New favorite menu, where you can add your favorite videos, music,
       streams, youtube videos... It's also possible to add submenus.
    + Support for youtube. Now you can open urls like
      http://www.youtube.com/watch?v=..... using the Open -> URL dialog or
      dragging a link from a browser to the smplayer window.
    + Support for mplayer2 (http://www.mplayer2.org). It's a fork of mplayer
      with interesting features like precise seeking, ordered chapters in
      mkv videos and better pause handling (e.g. seek works while the video
      is paused).
    + New translation: croatian.
  - Changes since 0.6.9:
    + New vdpau configuration dialog, which allow to select the vdpau codecs
      to use. (Closes: #610204)
    + Port for eCS, OS/2 (by Silvan Scherrer).
    + New menu to select the closed caption channel (requires mplayer >=
      r32607).
    + Possibility to select the seeking method (absolute or relative).
    + Possibility to sort the items of the playlist.
* Remove debian/patches/enable_ffodivxvdpau.diff, the application now
  provides a configuration dialog for vdpau.
* Refresh handle_local_urls.diff.
* Update copyright notice.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  smplayer, GUI front-end for mplayer.
2
 
    Copyright (C) 2006-2010 Ricardo Villalba <rvm@escomposlinux.org>
 
2
    Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net>
3
3
 
4
4
    This program is free software; you can redistribute it and/or modify
5
5
    it under the terms of the GNU General Public License as published by
24
24
#include "mediadata.h"
25
25
#include "config.h"
26
26
 
 
27
#ifdef Q_OS_OS2
 
28
#include <QThread>
 
29
#include <qt_os2.h>
 
30
#endif
 
31
 
27
32
#define NOTIFY_SUB_CHANGES 1
28
33
#define NOTIFY_AUDIO_CHANGES 1
29
34
 
 
35
#ifdef Q_OS_OS2
 
36
class PipeThread : public QThread
 
37
{
 
38
public:
 
39
        PipeThread(const QByteArray t, const HPIPE pipe);
 
40
        ~PipeThread();
 
41
        void run();
 
42
 
 
43
private:
 
44
        HPIPE hpipe;
 
45
        QByteArray text;
 
46
};
 
47
#endif
 
48
 
 
49
 
30
50
class QStringList;
31
51
 
32
52
class MplayerProcess : public MyProcess 
94
114
        void processFinished(int exitCode, QProcess::ExitStatus exitStatus);
95
115
        void gotError(QProcess::ProcessError);
96
116
 
 
117
#if defined(Q_OS_OS2)
 
118
        void MPpipeOpen();
 
119
        void MPpipeClose();
 
120
        void MPpipeWrite(const QByteArray text);
 
121
#endif
 
122
 
97
123
private:
98
124
        bool notified_mplayer_is_running;
99
125
        bool received_end_of_file;
102
128
 
103
129
        int last_sub_id;
104
130
 
 
131
#if defined(Q_OS_OS2) 
 
132
        PipeThread *pipeThread;       
 
133
        HPIPE hpipe;
 
134
        PID pidMP;
 
135
#endif
 
136
 
105
137
        int mplayer_svn;
106
138
 
107
139
#if NOTIFY_SUB_CHANGES