]> git.sesse.net Git - vlc/commitdiff
Removed a little hack in subpicture cache code.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 16 Sep 2008 22:26:38 +0000 (00:26 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 17 Sep 2008 17:10:47 +0000 (19:10 +0200)
src/video_output/vout_subpictures.c

index 7b90e3b8ea1a9f9ba2b2ee2dc1bf38292c42bb51..e2aaa231aac58766cae262055162e041020b3096 100644 (file)
@@ -814,9 +814,8 @@ static void SpuRenderRegion( spu_t *p_spu,
             p_pic = NULL;
             if( p_scale->p_module )
             {
-                picture_t picture = p_region->picture;
-                picture.pf_release = NULL;  /* That's an ugly hack */
-                p_pic = p_scale->pf_video_filter( p_scale, &picture );
+                picture_Yield( &p_region->picture );
+                p_pic = p_scale->pf_video_filter( p_scale, &p_region->picture );
             }
             if( p_pic )
             {