-rw-r--r-- | noncore/multimedia/opieplayer2/nullvideo.c | 8 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/opieplayer2.pro | 10 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.h | 4 |
3 files changed, 12 insertions, 10 deletions
diff --git a/noncore/multimedia/opieplayer2/nullvideo.c b/noncore/multimedia/opieplayer2/nullvideo.c index 5224862..877e49a 100644 --- a/noncore/multimedia/opieplayer2/nullvideo.c +++ b/noncore/multimedia/opieplayer2/nullvideo.c | |||
@@ -1,33 +1,33 @@ | |||
1 | 1 | ||
2 | /*#include <xine.h>*/ | 2 | /*#include <xine.h>*/ |
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | #include <stdio.h> | 4 | #include <stdio.h> |
5 | 5 | ||
6 | #include <xine/video_out.h> | 6 | #include <video_out.h> |
7 | #include <xine/xine_internal.h> | 7 | #include <xine_internal.h> |
8 | #include <xine/xineutils.h> | 8 | #include <xineutils.h> |
9 | #include <xine/configfile.h> | 9 | #include <configfile.h> |
10 | 10 | ||
11 | typedef struct null_driver_s null_driver_t; | 11 | typedef struct null_driver_s null_driver_t; |
12 | 12 | ||
13 | struct null_driver_s { | 13 | struct null_driver_s { |
14 | vo_driver_t vo_driver; | 14 | vo_driver_t vo_driver; |
15 | uint32_t m_capabilities; | 15 | uint32_t m_capabilities; |
16 | 16 | ||
17 | }; | 17 | }; |
18 | typedef struct opie_frame_s opie_frame_t; | 18 | typedef struct opie_frame_s opie_frame_t; |
19 | struct opie_frame_s { | 19 | struct opie_frame_s { |
20 | vo_frame_t frame; | 20 | vo_frame_t frame; |
21 | char* name; | 21 | char* name; |
22 | int version; | 22 | int version; |
23 | int m_width; | 23 | int m_width; |
24 | int m_height; | 24 | int m_height; |
25 | uint8_t *chunk[3]; | 25 | uint8_t *chunk[3]; |
26 | null_driver_t *output; | 26 | null_driver_t *output; |
27 | }; | 27 | }; |
28 | 28 | ||
29 | static uint32_t null_get_capabilities(vo_driver_t *self ){ | 29 | static uint32_t null_get_capabilities(vo_driver_t *self ){ |
30 | null_driver_t* this = (null_driver_t*)self; | 30 | null_driver_t* this = (null_driver_t*)self; |
31 | printf("capabilities\n"); | 31 | printf("capabilities\n"); |
32 | return this->m_capabilities; | 32 | return this->m_capabilities; |
33 | } | 33 | } |
diff --git a/noncore/multimedia/opieplayer2/opieplayer2.pro b/noncore/multimedia/opieplayer2/opieplayer2.pro index a6c7c2b..bcd9b92 100644 --- a/noncore/multimedia/opieplayer2/opieplayer2.pro +++ b/noncore/multimedia/opieplayer2/opieplayer2.pro | |||
@@ -1,17 +1,19 @@ | |||
1 | TEMPLATE = app | 1 | TEMPLATE = app |
2 | CONFIG = qt warn_on release | 2 | CONFIG = qt warn_on release |
3 | #release | 3 | #release |
4 | DESTDIR = $(OPIEDIR)/bin | 4 | DESTDIR = $(OPIEDIR)/bin |
5 | HEADERS = playlistselection.h mediaplayerstate.h xinecontrol.h\ | 5 | HEADERS = playlistselection.h mediaplayerstate.h xinecontrol.h\ |
6 | videowidget.h audiowidget.h playlistwidget.h mediaplayer.h inputDialog.h | 6 | videowidget.h audiowidget.h playlistwidget.h mediaplayer.h inputDialog.h \ |
7 | frame.h lib.h | ||
7 | SOURCES = main.cpp \ | 8 | SOURCES = main.cpp \ |
8 | playlistselection.cpp mediaplayerstate.cpp xinecontrol.cpp\ | 9 | playlistselection.cpp mediaplayerstate.cpp xinecontrol.cpp\ |
9 | videowidget.cpp audiowidget.cpp playlistwidget.cpp mediaplayer.cpp inputDialog.cpp | 10 | videowidget.cpp audiowidget.cpp playlistwidget.cpp mediaplayer.cpp inputDialog.cpp \ |
11 | frame.cpp lib.cpp nullvideo.c | ||
10 | TARGET = opieplayer | 12 | TARGET = opieplayer |
11 | INCLUDEPATH += $(OPIEDIR)/include /usr/include | 13 | INCLUDEPATH += $(OPIEDIR)/include |
12 | DEPENDPATH += $(OPIEDIR)/include /usr/include | 14 | DEPENDPATH += $(OPIEDIR)/include |
13 | LIBS += -lqpe -lpthread -lopie -lxine -lxineutils | 15 | LIBS += -lqpe -lpthread -lopie -lxine -lxineutils |
14 | 16 | ||
15 | INCLUDEPATH += $(OPIEDIR)/include | 17 | INCLUDEPATH += $(OPIEDIR)/include |
16 | DEPENDPATH += $(OPIEDIR)/include | 18 | DEPENDPATH += $(OPIEDIR)/include |
17 | 19 | ||
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.h b/noncore/multimedia/opieplayer2/xinecontrol.h index cba83c0..58ad8ec 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.h +++ b/noncore/multimedia/opieplayer2/xinecontrol.h | |||
@@ -1,38 +1,38 @@ | |||
1 | 1 | ||
2 | #ifndef XINECONTROL_H | 2 | #ifndef XINECONTROL_H |
3 | #define XINECONTROL_H | 3 | #define XINECONTROL_H |
4 | 4 | ||
5 | #include "lib.h" | 5 | #include "lib.h" |
6 | #include <qobject.h> | 6 | #include <qobject.h> |
7 | 7 | ||
8 | class XineControl : public QObject { | 8 | class XineControl : public QObject { |
9 | Q_OBJECT | 9 | Q_OBJECT |
10 | public: | 10 | public: |
11 | XineControl( QObject *parent, const char *name ); | 11 | XineControl( QObject *parent = 0, const char *name =0 ); |
12 | ~XineControl(); | 12 | ~XineControl(); |
13 | 13 | ||
14 | private slots: | 14 | public slots: |
15 | void play( const QString& fileName ); | 15 | void play( const QString& fileName ); |
16 | void stop(); | 16 | void stop(); |
17 | void pause( bool ); | 17 | void pause( bool ); |
18 | 18 | ||
19 | int currentTime(); | 19 | int currentTime(); |
20 | 20 | ||
21 | // get length of media file and set it | 21 | // get length of media file and set it |
22 | void length(); | 22 | void length(); |
23 | 23 | ||
24 | int position(); | 24 | int position(); |
25 | 25 | ||
26 | private: | 26 | private: |
27 | XINE::Lib *libXine; | 27 | XINE::Lib *libXine; |
28 | int m_length; | 28 | int m_length; |
29 | int m_currentTime; | 29 | int m_currentTime; |
30 | int m_position; | 30 | int m_position; |
31 | 31 | ||
32 | signals: | 32 | signals: |
33 | void positionChanged( int position ); | 33 | void positionChanged( int position ); |
34 | 34 | ||
35 | }; | 35 | }; |
36 | 36 | ||
37 | 37 | ||
38 | #endif | 38 | #endif |