This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 5ec9bafb0205f6f1aebde21eebcb2719bbee9074 (commit) from 7d6a3c37a8066eaae2a5c3a913c9ee53768ea677 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/5ec9bafb0205f6f1aebde21eebcb2719bbee9...
commit 5ec9bafb0205f6f1aebde21eebcb2719bbee9074 Author: Cyril Hrubis metan@ucw.cz Date: Sat Jul 20 00:17:50 2013 +0200
spiv: Stop loader thread before the seek in timer
This fixes the same problem as was in the seek for the timer callback.
The seek in image_loader may free the image the loader is working with so we need explicitly stop the loader thread before the seek.
Signed-off-by: Cyril Hrubis metan@ucw.cz
diff --git a/demos/spiv/spiv.c b/demos/spiv/spiv.c index 6d0cf85..936cb14 100644 --- a/demos/spiv/spiv.c +++ b/demos/spiv/spiv.c @@ -575,7 +575,6 @@ static void image_seek(struct loader_params *params, * image we are currently resamling. */ stop_loader(); - image_loader_seek(offset, whence); show_image(params); } @@ -641,6 +640,11 @@ static uint32_t timer_callback(GP_Timer *self) { struct loader_params *params = self->priv;
+ /* + * We need to stop loader first because image loader seek may free + * image we are currently resamling. + */ + stop_loader(); image_loader_seek(IMG_CUR, 1); show_image(params);
-----------------------------------------------------------------------
Summary of changes: demos/spiv/spiv.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.