Diffstat (limited to 'core/multimedia/opieplayer/loopcontrol_threaded.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/loopcontrol_threaded.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/loopcontrol_threaded.cpp b/core/multimedia/opieplayer/loopcontrol_threaded.cpp index 2ec4a48..2e49bb7 100644 --- a/core/multimedia/opieplayer/loopcontrol_threaded.cpp +++ b/core/multimedia/opieplayer/loopcontrol_threaded.cpp | |||
@@ -5,59 +5,59 @@ | |||
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #define _REENTRANT | 21 | #define _REENTRANT |
22 | 22 | ||
23 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
24 | #include <qimage.h> | 24 | #include <qimage.h> |
25 | #include <qpainter.h> | 25 | #include <qpainter.h> |
26 | #ifdef Q_WS_QWS | 26 | #ifdef Q_WS_QWS |
27 | #include <qpe/qcopenvelope_qws.h> | 27 | #include <qpe/qcopenvelope_qws.h> |
28 | #endif | 28 | #endif |
29 | #include "mediaplayerplugininterface.h" | ||
29 | #include <stdio.h> | 30 | #include <stdio.h> |
30 | #include <stdlib.h> | 31 | #include <stdlib.h> |
31 | #include <string.h> | 32 | #include <string.h> |
32 | #include <time.h> | 33 | #include <time.h> |
33 | #include <unistd.h> | 34 | #include <unistd.h> |
34 | #include <pthread.h> | 35 | #include <pthread.h> |
35 | #include "loopcontrol.h" | 36 | #include "loopcontrol.h" |
36 | #include "audiodevice.h" | 37 | #include "audiodevice.h" |
37 | #include "videowidget.h" | 38 | #include "videowidget.h" |
38 | #include "audiowidget.h" | 39 | #include "audiowidget.h" |
39 | #include "mediaplayerplugininterface.h" | ||
40 | #include "mediaplayerstate.h" | 40 | #include "mediaplayerstate.h" |
41 | 41 | ||
42 | 42 | ||
43 | #if defined(QT_QWS_CUSTOM) || defined(QT_QWS_IPAQ) | 43 | #if defined(QT_QWS_CUSTOM) || defined(QT_QWS_IPAQ) |
44 | #define USE_REALTIME_AUDIO_THREAD | 44 | #define USE_REALTIME_AUDIO_THREAD |
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | 47 | ||
48 | extern VideoWidget *videoUI; // now only needed to tell it to play a frame | 48 | extern VideoWidget *videoUI; // now only needed to tell it to play a frame |
49 | extern MediaPlayerState *mediaPlayerState; | 49 | extern MediaPlayerState *mediaPlayerState; |
50 | 50 | ||
51 | 51 | ||
52 | #define DecodeLoopDebug(x) qDebug x | 52 | #define DecodeLoopDebug(x) qDebug x |
53 | //#define DecodeLoopDebug(x) | 53 | //#define DecodeLoopDebug(x) |
54 | 54 | ||
55 | 55 | ||
56 | static char *audioBuffer = NULL; | 56 | static char *audioBuffer = NULL; |
57 | static AudioDevice *audioDevice = NULL; | 57 | static AudioDevice *audioDevice = NULL; |
58 | static bool disabledSuspendScreenSaver = FALSE; | 58 | static bool disabledSuspendScreenSaver = FALSE; |
59 | 59 | ||
60 | 60 | ||
61 | pthread_tvideo_tid; | 61 | pthread_tvideo_tid; |
62 | pthread_attr_t video_attr; | 62 | pthread_attr_t video_attr; |
63 | pthread_taudio_tid; | 63 | pthread_taudio_tid; |