fix segfault on zap with active timeshift
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 3 Jan 2007 10:43:30 +0000 (10:43 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 3 Jan 2007 10:43:30 +0000 (10:43 +0000)
lib/nav/core.cpp

index 5dc4599..45b4aa6 100644 (file)
@@ -62,9 +62,11 @@ RESULT eNavigation::stopService(void)
                        /* send stop event */
        m_event(iPlayableService::evEnd);
 
-       m_runningService->stop();
+       ePtr<iPlayableService> tmp = m_runningService;
+       m_runningService=0;
+       tmp->stop();
+
                /* kill service. */
-       m_runningService = 0;
        m_service_event_conn = 0;
        return 0;
 }