Commit 541b381c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

skins: fix crash if input-title-format is empty

parent 8ecc026e
......@@ -740,9 +740,15 @@ void VlcProc::update_current_input()
{
// Update short name (as defined by --input-title-format)
char *psz_fmt = var_InheritString( getIntf(), "input-title-format" );
char *psz_name = str_format_meta( pInput, psz_fmt );
SET_TEXT( m_cVarStreamName, UString( getIntf(), psz_name ) );
free( psz_fmt );
char *psz_name = NULL;
if( psz_fmt != NULL )
{
psz_name = str_format_meta( pInput, psz_fmt );
free( psz_fmt );
}
SET_TEXT( m_cVarStreamName, UString( getIntf(),
psz_name ? psz_name : "" ) );
free( psz_name );
// Update local path (if possible) or full uri
......
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