- p_sys->p_thread = vlc_object_create( p_filter,
- sizeof( goom_thread_t ) );
- p_sys->p_thread->p_vout = vout_Request( p_filter, NULL,
- GOOM_WIDTH, GOOM_HEIGHT,
- VLC_FOURCC('R','V','3','2'),
- GOOM_ASPECT );
- if( p_sys->p_thread->p_vout == NULL )
+ p_sys->p_thread = p_thread =
+ vlc_object_create( p_filter, sizeof( goom_thread_t ) );
+ vlc_object_attach( p_thread, p_this );
+
+ var_Create( p_thread, "goom-width", VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
+ var_Get( p_thread, "goom-width", &width );
+ var_Create( p_thread, "goom-height", VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
+ var_Get( p_thread, "goom-height", &height );
+
+ p_thread->p_vout =
+ vout_Request( p_filter, NULL, width.i_int, height.i_int,
+ VLC_FOURCC('R','V','3','2'),
+ VOUT_ASPECT_FACTOR * width.i_int/height.i_int );
+ if( p_thread->p_vout == NULL )