author | zecke <zecke> | 2002-07-02 15:25:38 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-02 15:25:38 (UTC) |
commit | e26bf96e2e4f2d1edf19e81dc67eace3cb8622dc (patch) (unidiff) | |
tree | 0346837eed0c9acc55f25601e495a188fb1111fb /noncore/multimedia/opieplayer2/lib.cpp | |
parent | d4a5bcbba0e6f67ef9d41e08c7d5ae598caa61a8 (diff) | |
download | opie-e26bf96e2e4f2d1edf19e81dc67eace3cb8622dc.zip opie-e26bf96e2e4f2d1edf19e81dc67eace3cb8622dc.tar.gz opie-e26bf96e2e4f2d1edf19e81dc67eace3cb8622dc.tar.bz2 |
my hacky null video output plugin
This will become our smart opie video widget
controller...
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp index ecaeeea..4b13f00 100644 --- a/noncore/multimedia/opieplayer2/lib.cpp +++ b/noncore/multimedia/opieplayer2/lib.cpp | |||
@@ -1,57 +1,57 @@ | |||
1 | 1 | ||
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | //#include <qpe/qpeapplication.h> | 4 | //#include <qpe/qpeapplication.h> |
5 | 5 | ||
6 | #include <qfile.h> | 6 | #include <qfile.h> |
7 | 7 | ||
8 | #include "frame.h" | 8 | #include "frame.h" |
9 | #include "xinelib.h" | 9 | #include "lib.h" |
10 | 10 | ||
11 | 11 | ||
12 | 12 | ||
13 | 13 | ||
14 | using namespace XINE; | 14 | using namespace XINE; |
15 | 15 | ||
16 | Lib::Lib() { | 16 | Lib::Lib() { |
17 | printf("Lib"); | 17 | printf("Lib"); |
18 | QCString str( getenv("HOME") ); | 18 | QCString str( getenv("HOME") ); |
19 | str += "/Settings/opiexine.cf"; | 19 | str += "/Settings/opiexine.cf"; |
20 | // get the configuration | 20 | // get the configuration |
21 | m_config = xine_config_file_init( str.data() ); | 21 | m_config = xine_config_file_init( str.data() ); |
22 | 22 | ||
23 | // allocate oss for sound | 23 | // allocate oss for sound |
24 | // and fb for framebuffer | 24 | // and fb for framebuffer |
25 | m_audioOutput= xine_load_audio_output_plugin( m_config, "oss") ; | 25 | m_audioOutput= xine_load_audio_output_plugin( m_config, "oss") ; |
26 | if (m_audioOutput == NULL ) | 26 | if (m_audioOutput == NULL ) |
27 | printf("Failure\n"); | 27 | printf("Failure\n"); |
28 | else | 28 | else |
29 | printf("Success\n"); | 29 | printf("Success\n"); |
30 | 30 | ||
31 | 31 | ||
32 | // test code | 32 | // test code |
33 | m_videoOutput = xine_load_video_output_plugin(m_config, "fb", | 33 | m_videoOutput = xine_load_video_output_plugin(m_config, "fb", |
34 | VISUAL_TYPE_FB, | 34 | VISUAL_TYPE_FB, |
35 | 0 ); | 35 | 0 ); |
36 | 36 | ||
37 | char** files = xine_list_video_output_plugins(3); | 37 | char** files = xine_list_video_output_plugins(3); |
38 | char* out; | 38 | char* out; |
39 | int i = 0; | 39 | int i = 0; |
40 | while ( ( out = files[i] ) != 0 ) { | 40 | while ( ( out = files[i] ) != 0 ) { |
41 | printf("Audio %s\n", out ); | 41 | printf("Audio %s\n", out ); |
42 | i++; | 42 | i++; |
43 | } | 43 | } |
44 | m_xine = xine_init( m_videoOutput, | 44 | m_xine = xine_init( m_videoOutput, |
45 | m_audioOutput, | 45 | m_audioOutput, |
46 | m_config ); | 46 | m_config ); |
47 | } | 47 | } |
48 | 48 | ||
49 | Lib::~Lib() { | 49 | Lib::~Lib() { |
50 | delete m_config; | 50 | delete m_config; |
51 | xine_exit( m_xine ); | 51 | xine_exit( m_xine ); |
52 | delete m_videoOutput; | 52 | delete m_videoOutput; |
53 | //delete m_audioOutput; | 53 | //delete m_audioOutput; |
54 | 54 | ||
55 | } | 55 | } |
56 | 56 | ||
57 | QCString Lib::version() { | 57 | QCString Lib::version() { |