[vlc-devel] commit: Fixed Qt4 interface to use the new postprocess vout variable. ( Laurent Aimar )

git version control git at videolan.org
Tue Feb 17 20:17:02 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Feb 17 19:52:43 2009 +0100| [df89b213f3a14ba2e853f94800d1c5a153040d35] | committer: Laurent Aimar 

Fixed Qt4 interface to use the new postprocess vout variable.

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

 modules/gui/qt4/menus.cpp |   31 +++----------------------------
 1 files changed, 3 insertions(+), 28 deletions(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index aaaa937..960789f 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -208,31 +208,7 @@ static int VideoAutoMenuBuilder( vout_thread_t *p_object,
     PUSH_VAR( "aspect-ratio" );
     PUSH_VAR( "crop" );
     PUSH_VAR( "deinterlace" );
-
-    /* Special case for postproc */
-    // FIXME
-    if( p_object )
-    {
-        /* p_object is the vout, so the decoder is our parent and the
-         * postproc filter one of the decoder's children */
-        vlc_object_t *p_dec = (vlc_object_t *)
-                              vlc_object_find( p_object, VLC_OBJECT_DECODER,
-                                               FIND_PARENT );
-        if( p_dec )
-        {
-            vlc_object_t *p_pp = (vlc_object_t *)
-                                 vlc_object_find_name( p_dec, "postproc",
-                                                       FIND_CHILD );
-            if( p_pp )
-            {
-                vlc_object_t *p_object = p_pp;
-                PUSH_VAR( "postproc-q" );
-                vlc_object_release( p_pp );
-            }
-
-            vlc_object_release( p_dec );
-        }
-    }
+    PUSH_VAR( "postprocess" );
 
     return VLC_SUCCESS;
 }
@@ -582,7 +558,7 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current )
         ACT_ADDMENU( current, "aspect-ratio", qtr( "&Aspect Ratio" ) );
         ACT_ADDMENU( current, "crop", qtr( "&Crop" ) );
         ACT_ADDMENU( current, "deinterlace", qtr( "&Deinterlace" ) );
-        ACT_ADDMENU( current, "postproc-q", qtr( "&Post processing" ) );
+        ACT_ADDMENU( current, "postprocess", qtr( "&Post processing" ) );
     }
 
     p_input = THEMIM->getInput();
@@ -1125,8 +1101,7 @@ void QVLCMenu::UpdateItem( intf_thread_t *p_intf, QMenu *menu,
     /* Check the type of the object variable */
     /* What is the following HACK needed for? */
     if( !strcmp( psz_var, "audio-es" )
-     || !strcmp( psz_var, "video-es" )
-     || !strcmp( psz_var, "postproc-q" ) )
+     || !strcmp( psz_var, "video-es" ) )
         i_type = VLC_VAR_INTEGER | VLC_VAR_HASCHOICE;
     else
         i_type = var_Type( p_object, psz_var );




More information about the vlc-devel mailing list