]> git.sesse.net Git - vlc/commitdiff
Used picture_IsReferenced in transcode.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 18 May 2009 20:35:06 +0000 (22:35 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 18 May 2009 20:40:30 +0000 (22:40 +0200)
modules/stream_out/transcode.c

index 6b9300c0401b4ed637f288f868a88c039360c018..9d7b042d4c6dee384b16fe315834f605c19cb4bd 100644 (file)
@@ -1916,7 +1916,7 @@ static int transcode_video_process( sout_stream_t *p_stream,
         {
             video_format_t fmt;
 
-            if( p_pic->i_refcount > 1 && !filter_chain_GetLength( id->p_f_chain ) )
+            if( picture_IsReferenced( p_pic ) && !filter_chain_GetLength( id->p_f_chain ) )
             {
                 /* We can't modify the picture, we need to duplicate it */
                 picture_t *p_tmp = video_new_buffer_decoder( id->p_decoder );