Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 { |