Skip to content

Commit

Permalink
Fix race condition upon reloading animations
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipberndt committed Jan 30, 2017
1 parent a31b979 commit e6c004a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ Known bugs
Changelog
---------

pqiv 2.7.2
pqiv 2.7.3
* Fix GTK 2 compilation
* Fix backends list in configure script
* Fix race condition upon reloading animations

pqiv 2.7
* Fixed window decoration toggling with --transparent-background
Expand Down
2 changes: 1 addition & 1 deletion pqiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ void invalidate_current_scaled_image_surface() {/*{{{*/
}/*}}}*/
gboolean image_animation_timeout_callback(gpointer user_data) {/*{{{*/
D_LOCK(file_tree);
if((BOSNode *)user_data != current_file_node || FILE(current_file_node)->force_reload) {
if((BOSNode *)user_data != current_file_node || FILE(current_file_node)->force_reload || !FILE(current_file_node)->is_loaded) {
D_UNLOCK(file_tree);
current_image_animation_timeout_id = 0;
return FALSE;
Expand Down
2 changes: 1 addition & 1 deletion pqiv.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "lib/bostree.h"

#ifndef PQIV_VERSION
#define PQIV_VERSION "2.7.2"
#define PQIV_VERSION "2.7.3"
#endif

#define FILE_FLAGS_ANIMATION (guint)(1)
Expand Down

0 comments on commit e6c004a

Please sign in to comment.