[vlc-devel] commit: Used picture_IsReferenced in transcode. (Laurent Aimar )

git version control git at videolan.org
Mon May 18 22:41:16 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon May 18 22:35:06 2009 +0200| [509c35ea924affdc4b155a0dcd94f42528c08821] | committer: Laurent Aimar 

Used picture_IsReferenced in transcode.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=509c35ea924affdc4b155a0dcd94f42528c08821
---

 modules/stream_out/transcode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/transcode.c b/modules/stream_out/transcode.c
index 6b9300c..9d7b042 100644
--- a/modules/stream_out/transcode.c
+++ b/modules/stream_out/transcode.c
@@ -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 );




More information about the vlc-devel mailing list