summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/lib.cpp
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.cpp8
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
53Lib::~Lib() { 55Lib::~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
61QCString Lib::version() { 63QCString Lib::version() {
62 QCString str( xine_get_str_version() ); 64 QCString str( xine_get_str_version() );