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, 3 insertions, 5 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
@@ -223,12 +223,10 @@ void Lib::xine_display_frame( void* user_data, uint8_t *frame,
223} 223}
224void Lib::drawFrame( uint8_t* frame, int width, int height, int bytes ) { 224void 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
231 m_wid->setImage( frame, width, height, bytes );
232// m_wid->repaint(false);
233 230
231 m_wid-> setVideoFrame ( frame, width, height, bytes );
234} 232}