src/3rdparty/phonon/mmf/mediaobject.cpp
changeset 33 3e2da88830cd
parent 22 79de32ba3296
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
   279     case MediaSource::Empty:
   279     case MediaSource::Empty:
   280         TRACE_0("Empty media source");
   280         TRACE_0("Empty media source");
   281         break;
   281         break;
   282     }
   282     }
   283 
   283 
       
   284     if (oldPlayer)
       
   285         oldPlayer->close();
       
   286 
   284     AbstractPlayer* newPlayer = 0;
   287     AbstractPlayer* newPlayer = 0;
   285 
   288 
   286     // Construct newPlayer using oldPlayer (if not 0) in order to copy
   289     // Construct newPlayer using oldPlayer (if not 0) in order to copy
   287     // parameters (volume, prefinishMark, transitionTime) which may have
   290     // parameters (volume, prefinishMark, transitionTime) which may have
   288     // been set on oldPlayer.
   291     // been set on oldPlayer.