author | zecke <zecke> | 2002-07-06 23:38:54 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-06 23:38:54 (UTC) |
commit | 4f44b353d8211a51e2f0bfb609f2c2d79c44827f (patch) (unidiff) | |
tree | 2178fb8097d7bb09c8a7fdac206dd64318a6b489 /noncore/multimedia/opieplayer2/lib.cpp | |
parent | 8703ff76831bf3f971087440b991608d59f429bf (diff) | |
download | opie-4f44b353d8211a51e2f0bfb609f2c2d79c44827f.zip opie-4f44b353d8211a51e2f0bfb609f2c2d79c44827f.tar.gz opie-4f44b353d8211a51e2f0bfb609f2c2d79c44827f.tar.bz2 |
Null video fixes
lib updates
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp index 123ca91..0ea85dd 100644 --- a/noncore/multimedia/opieplayer2/lib.cpp +++ b/noncore/multimedia/opieplayer2/lib.cpp | |||
@@ -34,29 +34,31 @@ Lib::Lib() { | |||
34 | // test code | 34 | // test code |
35 | m_videoOutput = xine_load_video_output_plugin(m_config, "fb", | 35 | m_videoOutput = xine_load_video_output_plugin(m_config, "fb", |
36 | VISUAL_TYPE_FB, | 36 | VISUAL_TYPE_FB, |
37 | 0 ); | 37 | 0 ); |
38 | 38 | ||
39 | char** files = xine_list_video_output_plugins(3); | 39 | char** files = xine_list_video_output_plugins(3); |
40 | char* out; | 40 | char* out; |
41 | int i = 0; | 41 | int i = 0; |
42 | while ( ( out = files[i] ) != 0 ) { | 42 | while ( ( out = files[i] ) != 0 ) { |
43 | printf("Audio %s\n", out ); | 43 | printf("Audio %s\n", out ); |
44 | i++; | 44 | i++; |
45 | } | 45 | } |
46 | m_xine = xine_init( m_videoOutput, | 46 | // m_xine = xine_init( m_videoOutput, |
47 | m_audioOutput, | 47 | // m_audioOutput, |
48 | m_config ); | 48 | // m_config ); |
49 | // test loading | 49 | // test loading |
50 | m_videoOutput = ::init_video_out_plugin( m_config, NULL ); | 50 | m_videoOutput = ::init_video_out_plugin( m_config, NULL ); |
51 | m_xine = xine_init( m_videoOutput, | ||
52 | m_audioOutput, m_config ); | ||
51 | } | 53 | } |
52 | 54 | ||
53 | Lib::~Lib() { | 55 | Lib::~Lib() { |
54 | delete m_config; | 56 | delete m_config; |
55 | xine_exit( m_xine ); | 57 | xine_exit( m_xine ); |
56 | delete m_videoOutput; | 58 | delete m_videoOutput; |
57 | //delete m_audioOutput; | 59 | //delete m_audioOutput; |
58 | 60 | ||
59 | } | 61 | } |
60 | 62 | ||
61 | QCString Lib::version() { | 63 | QCString Lib::version() { |
62 | QCString str( xine_get_str_version() ); | 64 | QCString str( xine_get_str_version() ); |