Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp index 748ae1f..d8a0694 100644 --- a/noncore/multimedia/opieplayer2/lib.cpp +++ b/noncore/multimedia/opieplayer2/lib.cpp | |||
@@ -90,13 +90,13 @@ Lib::Lib(XineVideoWidget* widget) { | |||
90 | m_audioOutput= xine_load_audio_output_plugin( m_config, "oss") ; | 90 | m_audioOutput= xine_load_audio_output_plugin( m_config, "oss") ; |
91 | m_videoOutput = ::init_video_out_plugin( m_config, NULL ); | 91 | m_videoOutput = ::init_video_out_plugin( m_config, NULL ); |
92 | if (m_wid != 0 ) { | 92 | if (m_wid != 0 ) { |
93 | printf("!0\n" ); | 93 | printf("!0\n" ); |
94 | resize ( m_wid-> size ( )); | 94 | resize ( m_wid-> size ( )); |
95 | ::null_set_mode( m_videoOutput, qt_screen->depth(), qt_screen->pixelType() ); | 95 | ::null_set_mode( m_videoOutput, qt_screen->depth(), qt_screen->pixelType() ); |
96 | m_wid-> setImage ( new QImage ( Resource::loadImage("") ) ); | 96 | m_wid-> setLogo ( new QImage ( Resource::loadImage(""))); |
97 | m_wid->repaint(); | 97 | m_wid->repaint(); |
98 | } | 98 | } |
99 | null_display_handler( m_videoOutput, | 99 | null_display_handler( m_videoOutput, |
100 | xine_display_frame, | 100 | xine_display_frame, |
101 | this ); | 101 | this ); |
102 | 102 | ||
@@ -225,10 +225,8 @@ void Lib::drawFrame( uint8_t* frame, int width, int height, int bytes ) { | |||
225 | if (!m_video ) { | 225 | if (!m_video ) { |
226 | qWarning("not showing video now"); | 226 | qWarning("not showing video now"); |
227 | return; | 227 | return; |
228 | } | 228 | } |
229 | // qWarning("called draw frame %d %d", width, height); | 229 | // qWarning("called draw frame %d %d", width, height); |
230 | 230 | ||
231 | m_wid->setImage( frame, width, height, bytes ); | 231 | m_wid-> setVideoFrame ( frame, width, height, bytes ); |
232 | // m_wid->repaint(false); | ||
233 | |||
234 | } | 232 | } |