Commit c1f5a1a6 authored by Antoine Cellerier's avatar Antoine Cellerier

Prevent some segfaults when using hotkeys with no vout

parent a71707c1
...@@ -511,7 +511,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -511,7 +511,7 @@ static void Run( intf_thread_t *p_intf )
_("Subtitle track: %s"), _("Subtitle track: %s"),
list2.p_list->p_values[i].psz_string ); list2.p_list->p_values[i].psz_string );
} }
else if( i_action == ACTIONID_ASPECT_RATIO ) else if( i_action == ACTIONID_ASPECT_RATIO && p_vout )
{ {
vlc_value_t val={0}, val_list, text_list; vlc_value_t val={0}, val_list, text_list;
var_Get( p_vout, "aspect-ratio", &val ); var_Get( p_vout, "aspect-ratio", &val );
...@@ -537,7 +537,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -537,7 +537,7 @@ static void Run( intf_thread_t *p_intf )
} }
free( val.psz_string ); free( val.psz_string );
} }
else if( i_action == ACTIONID_CROP ) else if( i_action == ACTIONID_CROP && p_vout )
{ {
vlc_value_t val={0}, val_list, text_list; vlc_value_t val={0}, val_list, text_list;
var_Get( p_vout, "crop", &val ); var_Get( p_vout, "crop", &val );
...@@ -563,7 +563,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -563,7 +563,7 @@ static void Run( intf_thread_t *p_intf )
} }
free( val.psz_string ); free( val.psz_string );
} }
else if( i_action == ACTIONID_DEINTERLACE ) else if( i_action == ACTIONID_DEINTERLACE && p_vout )
{ {
vlc_value_t val={0}, val_list, text_list; vlc_value_t val={0}, val_list, text_list;
var_Get( p_vout, "deinterlace", &val ); var_Get( p_vout, "deinterlace", &val );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment