[vlc-devel] commit: Used es_format_IsSimilar when needed. (Laurent Aimar )

git version control git at videolan.org
Sat Jun 6 00:57:58 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Jun  6 00:39:53 2009 +0200| [b955e0008ed8750d18a662ed09a3b43ec72e0e27] | committer: Laurent Aimar 

Used es_format_IsSimilar when needed.

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

 modules/video_filter/magnify.c |    2 +-
 modules/video_filter/puzzle.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/magnify.c b/modules/video_filter/magnify.c
index daf353a..27e7e54 100644
--- a/modules/video_filter/magnify.c
+++ b/modules/video_filter/magnify.c
@@ -102,7 +102,7 @@ static int Create( vlc_object_t *p_this )
         msg_Err( p_filter, "Unsupported chroma" );
         return VLC_EGENERIC;
     }
-    if( memcmp( &p_filter->fmt_in, &p_filter->fmt_out, sizeof(p_filter->fmt_in) ) )
+    if( !es_format_IsSimilar( &p_filter->fmt_in, &p_filter->fmt_out ) )
     {
         msg_Err( p_filter, "Input and output format does not match" );
         return VLC_EGENERIC;
diff --git a/modules/video_filter/puzzle.c b/modules/video_filter/puzzle.c
index 1b4f1c3..f4de976 100644
--- a/modules/video_filter/puzzle.c
+++ b/modules/video_filter/puzzle.c
@@ -134,7 +134,7 @@ static int Open( vlc_object_t *p_this )
     filter_sys_t *p_sys;
 
     /* */
-    if( memcmp( &p_filter->fmt_in, &p_filter->fmt_out, sizeof(p_filter->fmt_in) ) )
+    if( !es_format_IsSimilar( &p_filter->fmt_in, &p_filter->fmt_out ) )
     {
         msg_Err( p_filter, "Input and output format does not match" );
         return VLC_EGENERIC;




More information about the vlc-devel mailing list