[vlc-commits] swscale: remove constant parameter

Rémi Denis-Courmont git at videolan.org
Fri Dec 12 17:44:55 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec 12 18:06:13 2014 +0200| [13caaaf3467bbfb612cde2f0db925cd5210803f9] | committer: Rémi Denis-Courmont

swscale: remove constant parameter

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

 modules/video_chroma/swscale.c |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/modules/video_chroma/swscale.c b/modules/video_chroma/swscale.c
index 9e4c252..f946686 100644
--- a/modules/video_chroma/swscale.c
+++ b/modules/video_chroma/swscale.c
@@ -85,8 +85,7 @@ vlc_module_end ()
  */
 struct filter_sys_t
 {
-    SwsFilter *p_src_filter;
-    SwsFilter *p_dst_filter;
+    SwsFilter *p_filter;
     int i_cpu_mask, i_sws_flags;
 
     video_format_t fmt_in;
@@ -183,8 +182,8 @@ static int OpenScaler( vlc_object_t *p_this )
 
     if( Init( p_filter ) )
     {
-        if( p_sys->p_src_filter )
-            sws_freeFilter( p_sys->p_src_filter );
+        if( p_sys->p_filter )
+            sws_freeFilter( p_sys->p_filter );
         free( p_sys );
         return VLC_EGENERIC;
     }
@@ -213,8 +212,8 @@ static void CloseScaler( vlc_object_t *p_this )
     filter_sys_t *p_sys = p_filter->p_sys;
 
     Clean( p_filter );
-    if( p_sys->p_src_filter )
-        sws_freeFilter( p_sys->p_src_filter );
+    if( p_sys->p_filter )
+        sws_freeFilter( p_sys->p_filter );
     free( p_sys );
 }
 
@@ -416,7 +415,7 @@ static int Init( filter_t *p_filter )
         ctx = sws_getContext( iwidth, iheight, i_fmti,
                               owidth, oheight, i_fmto,
                               cfg.i_sws_flags | p_sys->i_cpu_mask,
-                              p_sys->p_src_filter, p_sys->p_dst_filter, 0 );
+                              p_sys->p_filter, NULL, 0 );
         if( n == 0 )
             p_sys->ctx = ctx;
         else



More information about the vlc-commits mailing list