[vlmc-devel] VLCSource: Fix snapshot computing error detection
    Hugo Beauzée-Luyssen 
    git at videolan.org
       
    Mon Feb 24 20:09:44 CET 2014
    
    
  
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 24 19:50:22 2014 +0200| [ca208e0995e7d5cc44c43bbbfa5b6cd48ffd55a6] | committer: Hugo Beauzée-Luyssen
VLCSource: Fix snapshot computing error detection
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=ca208e0995e7d5cc44c43bbbfa5b6cd48ffd55a6
---
 src/Backend/VLC/VLCSource.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Backend/VLC/VLCSource.cpp b/src/Backend/VLC/VLCSource.cpp
index 89e2e31..e27f12a 100644
--- a/src/Backend/VLC/VLCSource.cpp
+++ b/src/Backend/VLC/VLCSource.cpp
@@ -132,7 +132,7 @@ VLCSource::computeSnapshot( VmemRenderer* renderer )
     }
     m_snapshot = renderer->waitSnapshot();
     delete renderer;
-    return true;
+    return m_snapshot != NULL;
 }
 
 unsigned int
    
    
More information about the Vlmc-devel
mailing list