Commit d6b0343a authored by Srikanth Raju's avatar Srikanth Raju Committed by Jean-Philippe André

Sqlite: Unlock commit transaction on success, not fail

parent f2596fab
......@@ -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;
}
......
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