* modules/video_filter/scale.c: Guard against p_pic->pf_release being NULL, which...
authorAndre Pang <andrep@videolan.org>
Fri, 4 Feb 2005 16:13:11 +0000 (16:13 +0000)
committerAndre Pang <andrep@videolan.org>
Fri, 4 Feb 2005 16:13:11 +0000 (16:13 +0000)
modules/video_filter/scale.c

index 75b473a..5b587db 100644 (file)
@@ -114,7 +114,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     if( !p_pic_dst )
     {
         msg_Warn( p_filter, "can't get output picture" );
-        p_pic->pf_release( p_pic );
+        if( p_pic->pf_release )
+            p_pic->pf_release( p_pic );
         return NULL;
     }