[vlc-devel] commit: Cosmetics. (Laurent Aimar )
git version control
git at videolan.org
Tue Sep 1 00:20:40 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Aug 31 23:34:32 2009 +0200| [4fbca131b6132f47ca5b558037a75adb62d03cba] | committer: Laurent Aimar
Cosmetics.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4fbca131b6132f47ca5b558037a75adb62d03cba
---
src/video_output/video_output.c | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 76cfa30..f4788b3 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -484,13 +484,24 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
free( psz_parser );
free( psz_tmp );
p_vout->p_cfg = p_cfg;
+
+ /* Create a few object variables for interface interaction */
+ var_Create( p_vout, "vout-filter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
+ text.psz_string = _("Filters");
+ var_Change( p_vout, "vout-filter", VLC_VAR_SETTEXT, &text, NULL );
+ var_AddCallback( p_vout, "vout-filter", FilterCallback, NULL );
+
+ /* */
+ DeinterlaceEnable( p_vout );
+
+ vlc_object_set_destructor( p_vout, vout_Destructor );
+
+ /* */
p_vout->p_module = module_need( p_vout,
( p_vout->p->psz_filter_chain && *p_vout->p->psz_filter_chain ) ?
"video filter" : "video output", psz_name, p_vout->p->psz_filter_chain && *p_vout->p->psz_filter_chain );
free( psz_name );
- vlc_object_set_destructor( p_vout, vout_Destructor );
-
if( p_vout->p_module == NULL )
{
msg_Err( p_vout, "no suitable vout module" );
@@ -501,15 +512,6 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
return NULL;
}
- /* Create a few object variables for interface interaction */
- var_Create( p_vout, "vout-filter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
- text.psz_string = _("Filters");
- var_Change( p_vout, "vout-filter", VLC_VAR_SETTEXT, &text, NULL );
- var_AddCallback( p_vout, "vout-filter", FilterCallback, NULL );
-
- /* */
- DeinterlaceEnable( p_vout );
-
/* */
vlc_cond_init( &p_vout->p->change_wait );
if( vlc_clone( &p_vout->p->thread, RunThread, p_vout,
More information about the vlc-devel
mailing list