summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-08-09 21:06:15 (UTC)
committer harlekin <harlekin>2002-08-09 21:06:15 (UTC)
commit62f9bc4e906784d201d758b9c0bba05a294a31be (patch) (side-by-side diff)
treedfdb5b202046fdd87879fa0f8ccf75eec7369363
parent46eb53b1fd042d2591933a7d89a0e65b79140f16 (diff)
downloadopie-62f9bc4e906784d201d758b9c0bba05a294a31be.zip
opie-62f9bc4e906784d201d758b9c0bba05a294a31be.tar.gz
opie-62f9bc4e906784d201d758b9c0bba05a294a31be.tar.bz2
fix runnaway seek on media change
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/audiowidget.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/noncore/multimedia/opieplayer2/audiowidget.cpp b/noncore/multimedia/opieplayer2/audiowidget.cpp
index 6b656ee..dc90a62 100644
--- a/noncore/multimedia/opieplayer2/audiowidget.cpp
+++ b/noncore/multimedia/opieplayer2/audiowidget.cpp
@@ -303,3 +303,2 @@ void AudioWidget::setLength( long max ) {
void AudioWidget::setView( char view ) {
- slider.show();
@@ -307,17 +306,19 @@ void AudioWidget::setView( char view ) {
-// if ( mediaPlayerState->streaming() ) {
-// qDebug("<<<<<<<<<<<<<<file is STREAMING>>>>>>>>>>>>>>>>>>>");
-// if( !slider.isHidden()) slider.hide();
-// disconnect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) );
-// disconnect( mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) );
-// } else {
+ if ( mediaPlayerState->streaming() ) {
+ qDebug("<<<<<<<<<<<<<<file is STREAMING>>>>>>>>>>>>>>>>>>>");
+ if( !slider.isHidden()) {
+ slider.hide();
+ }
+ disconnect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) );
+ disconnect( mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) );
+ } else {
// this stops the slider from being moved, thus
// does not stop stream when it reaches the end
- // slider.show();
+ slider.show();
connect( mediaPlayerState, SIGNAL( positionChanged(long) ),this, SLOT( setPosition(long) ) );
connect( mediaPlayerState, SIGNAL( positionUpdated(long) ),this, SLOT( setPosition(long) ) );
-// }
+ }
if ( view == 'a' ) {
- startTimer( 150 );
+ // startTimer( 150 );
showMaximized();