1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00

Sqlite: Unlock commit transaction on success, not fail

This commit is contained in:
Srikanth Raju 2010-02-03 21:11:06 +05:30 committed by Jean-Philippe André
parent f2596fab9b
commit d6b0343a81

View File

@ -451,9 +451,10 @@ static int CommitTransaction( sql_t* p_sql )
msg_Warn( p_sql, "sqlite3 error: %d: %s",
sqlite3_errcode( p_sql->p_sys->db ),
sqlite3_errmsg( p_sql->p_sys->db ) );
vlc_mutex_unlock( &p_sql->p_sys->trans_lock );
i_ret = VLC_EGENERIC;
}
else
vlc_mutex_unlock( &p_sql->p_sys->trans_lock );
vlc_mutex_unlock( &p_sql->p_sys->lock );
return i_ret;
}