Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 5b674f8..7407e4e 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -4,2 +4,3 @@ | |||
4 | 4 | ||
5 | |||
5 | extern MediaPlayerState *mediaPlayerState; | 6 | extern MediaPlayerState *mediaPlayerState; |
@@ -24,6 +25,14 @@ void XineControl::play( const QString& fileName ) { | |||
24 | // default to audio view until we know how to handle video | 25 | // default to audio view until we know how to handle video |
25 | mediaPlayerState->setView('a'); | 26 | // MediaDetect mdetect; |
26 | // determines of slider is shown | 27 | char whichGui = mdetect.videoOrAudio( fileName ); |
27 | // mediaPlayerState->setIsStreaming( false ); | 28 | if (whichGui == 'f') { |
28 | // hier dann schaun welcher view | 29 | qDebug("Nicht erkannter Dateityp"); |
30 | return; | ||
31 | } | ||
32 | |||
33 | // which gui (video / audio) | ||
34 | mediaPlayerState->setView( whichGui ); | ||
35 | |||
36 | // determine if slider is shown | ||
37 | mediaPlayerState->setIsStreaming( mdetect.isStreaming( fileName ) ); | ||
29 | } | 38 | } |
@@ -33,3 +42,3 @@ void XineControl::stop( bool isSet ) { | |||
33 | libXine->stop(); | 42 | libXine->stop(); |
34 | mediaPlayerState->setNext(); | 43 | mediaPlayerState->setList(); |
35 | //mediaPlayerState->setPlaying( false ); | 44 | //mediaPlayerState->setPlaying( false ); |
@@ -41,3 +50,2 @@ void XineControl::stop( bool isSet ) { | |||
41 | void XineControl::pause( bool isSet) { | 50 | void XineControl::pause( bool isSet) { |
42 | |||
43 | libXine->pause(); | 51 | libXine->pause(); |