[vlc-devel] commit: Used vlc_fourcc_GetCodec in vout core. (Laurent Aimar )

git version control git at videolan.org
Wed May 13 21:20:17 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue May 12 22:14:52 2009 +0200| [7b21f4d2dd6e0baacc108b01aa99ca2d8a291adc] | committer: Laurent Aimar 

Used vlc_fourcc_GetCodec in vout core.

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

 src/video_output/video_output.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 5308c6a..e2dcfdb 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -208,7 +208,7 @@ vout_thread_t *__vout_Request( vlc_object_t *p_this, vout_thread_t *p_vout,
             free( psz_filter_chain );
         }
 
-        if( p_vout->fmt_render.i_chroma != p_fmt->i_chroma ||
+        if( p_vout->fmt_render.i_chroma != vlc_fourcc_GetCodec( VIDEO_ES, p_fmt->i_chroma ) ||
             p_vout->fmt_render.i_width != p_fmt->i_width ||
             p_vout->fmt_render.i_height != p_fmt->i_height ||
             p_vout->p->b_filter_change )
@@ -303,7 +303,7 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
 
     unsigned int i_width = p_fmt->i_width;
     unsigned int i_height = p_fmt->i_height;
-    vlc_fourcc_t i_chroma = p_fmt->i_chroma;
+    vlc_fourcc_t i_chroma = vlc_fourcc_GetCodec( VIDEO_ES, p_fmt->i_chroma );
     unsigned int i_aspect = p_fmt->i_aspect;
 
     config_chain_t *p_cfg;




More information about the vlc-devel mailing list