-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 3 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.h | 3 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/nullvideo.c | 8 | ||||
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 11 |
4 files changed, 21 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp index 1ebbbd8..19b64e8 100644 --- a/noncore/multimedia/opieplayer2/lib.cpp +++ b/noncore/multimedia/opieplayer2/lib.cpp | |||
@@ -203,3 +203,4 @@ void Lib::seekTo( int time ) { | |||
203 | //xine_trick_mode ( m_stream, XINE_TRICK_MODE_SEEK_TO_TIME, time ); NOT IMPLEMENTED YET IN XINE :_( | 203 | //xine_trick_mode ( m_stream, XINE_TRICK_MODE_SEEK_TO_TIME, time ); NOT IMPLEMENTED YET IN XINE :_( |
204 | xine_play( m_stream, 0, time ); | 204 | // since its now milliseconds we need *1000 |
205 | xine_play( m_stream, 0, time*1000 ); | ||
205 | } | 206 | } |
diff --git a/noncore/multimedia/opieplayer2/lib.h b/noncore/multimedia/opieplayer2/lib.h index 191dbbd..38938a1 100644 --- a/noncore/multimedia/opieplayer2/lib.h +++ b/noncore/multimedia/opieplayer2/lib.h | |||
@@ -92,2 +92,3 @@ namespace XINE { | |||
92 | int currentTime()/*const*/; | 92 | int currentTime()/*const*/; |
93 | |||
93 | int length() /*const*/; | 94 | int length() /*const*/; |
@@ -174,3 +175,5 @@ namespace XINE { | |||
174 | signals: | 175 | signals: |
176 | |||
175 | void stopped(); | 177 | void stopped(); |
178 | |||
176 | private: | 179 | private: |
diff --git a/noncore/multimedia/opieplayer2/nullvideo.c b/noncore/multimedia/opieplayer2/nullvideo.c index dcdfae6..b1f4811 100644 --- a/noncore/multimedia/opieplayer2/nullvideo.c +++ b/noncore/multimedia/opieplayer2/nullvideo.c | |||
@@ -441,3 +441,3 @@ static int null_gui_data_exchange( xine_vo_driver_t* self, | |||
441 | 441 | ||
442 | static void null_exit( xine_vo_driver_t* self ){ | 442 | static void null_dispose ( xine_vo_driver_t* self ){ |
443 | null_driver_t* this = (null_driver_t*)self; | 443 | null_driver_t* this = (null_driver_t*)self; |
@@ -480,3 +480,3 @@ xine_vo_driver_t* init_video_out_plugin( config_values_t* conf, | |||
480 | vo->vo_driver.gui_data_exchange = null_gui_data_exchange; | 480 | vo->vo_driver.gui_data_exchange = null_gui_data_exchange; |
481 | vo->vo_driver.exit = null_exit; | 481 | vo->vo_driver.dispose = null_dispose; |
482 | vo->vo_driver.redraw_needed = null_redraw_needed; | 482 | vo->vo_driver.redraw_needed = null_redraw_needed; |
@@ -492,5 +492,5 @@ xine_vo_driver_t* init_video_out_plugin( config_values_t* conf, | |||
492 | 492 | ||
493 | #if 0 | ||
493 | static vo_info_t vo_info_null = { | 494 | static vo_info_t vo_info_null = { |
494 | 5, | 495 | 5, |
495 | "null plugin", | ||
496 | XINE_VISUAL_TYPE_FB | 496 | XINE_VISUAL_TYPE_FB |
@@ -503,2 +503,4 @@ vo_info_t *get_video_out_plugin_info(){ | |||
503 | 503 | ||
504 | #endif | ||
505 | |||
504 | /* this is special for this device */ | 506 | /* this is special for this device */ |
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 31ac9dc..03176b3 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -81,2 +81,4 @@ void XineControl::play( const QString& fileName ) { | |||
81 | QMessageBox::warning( 0l , tr( "Failure" ), getErrorCode() ); | 81 | QMessageBox::warning( 0l , tr( "Failure" ), getErrorCode() ); |
82 | // toggle stop so the the play button is reset | ||
83 | mediaPlayerState->setPlaying( false ); | ||
82 | return; | 84 | return; |
@@ -227,6 +229,15 @@ QString XineControl::getMetaInfo() { | |||
227 | QString XineControl::getErrorCode() { | 229 | QString XineControl::getErrorCode() { |
230 | |||
228 | int errorCode = libXine->error(); | 231 | int errorCode = libXine->error(); |
229 | 232 | ||
233 | qDebug( QString("ERRORCODE: %1 ").arg(errorCode) ); | ||
234 | |||
230 | if ( errorCode == 1 ) { | 235 | if ( errorCode == 1 ) { |
231 | return tr( "No input plugin found for this media type" ); | 236 | return tr( "No input plugin found for this media type" ); |
237 | } else if ( errorCode == 2 ) { | ||
238 | return tr( "No demux plugin found for this media type" ); | ||
239 | } else if ( errorCode == 3 ) { | ||
240 | return tr( "Demuxing failed for this media type" ); | ||
241 | } else if ( errorCode == 4 ) { | ||
242 | return tr( "Malformed MRL" ); | ||
232 | } else { | 243 | } else { |