Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp index 3a82a50..c187f52 100644 --- a/noncore/multimedia/opieplayer2/lib.cpp +++ b/noncore/multimedia/opieplayer2/lib.cpp | |||
@@ -78,47 +78,24 @@ Lib::Lib(XineVideoWidget* widget) { | |||
78 | QFile f(str); | 78 | QFile f(str); |
79 | f.open(IO_WriteOnly); | 79 | f.open(IO_WriteOnly); |
80 | QTextStream ts( &f ); | 80 | QTextStream ts( &f ); |
81 | ts << "misc.memcpy_method:glibc\n"; | 81 | ts << "misc.memcpy_method:glibc\n"; |
82 | f.close(); | 82 | f.close(); |
83 | } | 83 | } |
84 | 84 | ||
85 | m_config = xine_config_file_init( str.data() ); | 85 | m_config = xine_config_file_init( str.data() ); |
86 | 86 | ||
87 | // allocate oss for sound | 87 | // allocate oss for sound |
88 | // and fb for framebuffer | 88 | // and fb for framebuffer |
89 | m_audioOutput= xine_load_audio_output_plugin( m_config, "oss") ; | 89 | m_audioOutput= xine_load_audio_output_plugin( m_config, "oss") ; |
90 | if (m_audioOutput == NULL ) | ||
91 | printf("Failure\n"); | ||
92 | else | ||
93 | printf("Success\n"); | ||
94 | |||
95 | |||
96 | // test code | ||
97 | /* m_videoOutput = xine_load_video_output_plugin(m_config, "fb", | ||
98 | VISUAL_TYPE_FB, | ||
99 | 0 ); | ||
100 | */ | ||
101 | |||
102 | char** files = xine_list_video_output_plugins(3); | ||
103 | char* out; | ||
104 | int i = 0; | ||
105 | while ( ( out = files[i] ) != 0 ) { | ||
106 | printf("Video %s\n", out ); | ||
107 | i++; | ||
108 | } | ||
109 | // m_xine = xine_init( m_videoOutput, | ||
110 | // m_audioOutput, | ||
111 | // m_config ); | ||
112 | // test loading | ||
113 | m_videoOutput = ::init_video_out_plugin( m_config, NULL ); | 90 | m_videoOutput = ::init_video_out_plugin( m_config, NULL ); |
114 | if (m_wid != 0 ) { | 91 | if (m_wid != 0 ) { |
115 | printf("!0\n" ); | 92 | printf("!0\n" ); |
116 | resize ( m_wid-> size ( )); | 93 | resize ( m_wid-> size ( )); |
117 | ::null_set_mode( m_videoOutput, qt_screen->depth(), qt_screen->pixelType() ); | 94 | ::null_set_mode( m_videoOutput, qt_screen->depth(), qt_screen->pixelType() ); |
118 | m_wid-> setImage ( new QImage ( Resource::loadImage(""))); | 95 | m_wid-> setImage ( new QImage ( Resource::loadImage(""))); |
119 | m_wid->repaint(); | 96 | m_wid->repaint(); |
120 | } | 97 | } |
121 | null_display_handler( m_videoOutput, | 98 | null_display_handler( m_videoOutput, |
122 | xine_display_frame, | 99 | xine_display_frame, |
123 | this ); | 100 | this ); |
124 | 101 | ||