Minor correction
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sat, 12 Feb 2005 14:10:11 +0000 (14:10 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Sat, 12 Feb 2005 14:10:11 +0000 (14:10 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@667 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt++/src/MltService.cpp

index 63509f4..078a289 100644 (file)
@@ -109,6 +109,7 @@ int Service::detach( Filter &filter )
 
 Filter *Service::filter( int index )
 {
-       return new Filter( mlt_service_filter( get_service( ), index ) );
+       mlt_filter result = mlt_service_filter( get_service( ), index );
+       return result == NULL ? NULL : new Filter( result );
 }