[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/multimedia/amarok/src
From:       Nikolaj Hald Nielsen <nhnFreespirit () gmail ! com>
Date:       2009-06-28 15:13:33
Message-ID: 1246202013.642498.21229.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 988737 by nhnielsen:

Make TimecodeTracks actually work again

 M  +4 -1      EngineController.cpp  
 M  +3 -1      timecode/TimecodeMeta.cpp  
 M  +1 -1      timecode/TimecodeMeta.h  


--- trunk/extragear/multimedia/amarok/src/EngineController.cpp #988736:988737
@@ -295,10 +295,11 @@
     delete m_boundedPlayback;
     delete m_multiPlayback;
     delete m_multiSource;
-    m_currentTrack->create<Meta::BoundedPlaybackCapability>();
+    m_boundedPlayback = m_currentTrack->create<Meta::BoundedPlaybackCapability>();
     m_multiPlayback = m_currentTrack->create<Meta::MultiPlayableCapability>();
     m_multiSource  = m_currentTrack->create<Meta::MultiSourceCapability>();
 
+
     m_nextTrack.clear();
     m_nextUrl.clear();
     m_media->clearQueue();
@@ -320,10 +321,12 @@
     }
     else if ( m_boundedPlayback )
     {
+        debug() << "Starting bounded playback of url " << \
m_currentTrack->playableUrl() << " at position " << \
                m_boundedPlayback->startPosition();
         playUrl( m_currentTrack->playableUrl(), m_boundedPlayback->startPosition() \
);  }
     else
     {
+        debug() << "Just a normal, boring track... :-P";
         playUrl( m_currentTrack->playableUrl(), offset );
     }
 }
--- trunk/extragear/multimedia/amarok/src/timecode/TimecodeMeta.cpp #988736:988737
@@ -494,8 +494,10 @@
 }
 
 Meta::Capability *
-TimecodeTrack::asCapabilityInterface( Meta::Capability::Type type )
+TimecodeTrack::createCapabilityInterface( Meta::Capability::Type type )
 {
+    DEBUG_BLOCK
+    
     if ( type == Meta::Capability::BoundedPlayback )
         return new BoundedPlaybackCapabilityImpl( this );
     else if( type == Meta::Capability::Editable )
--- trunk/extragear/multimedia/amarok/src/timecode/TimecodeMeta.h #988736:988737
@@ -141,7 +141,7 @@
     virtual QString type() const;
 
     virtual bool hasCapabilityInterface( Meta::Capability::Type type ) const;
-    virtual Meta::Capability* asCapabilityInterface( Meta::Capability::Type type );
+    virtual Meta::Capability* createCapabilityInterface( Meta::Capability::Type type \
);  
     void beginMetaDataUpdate();
     void endMetaDataUpdate();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic