aboutsummaryrefslogtreecommitdiff
path: root/src/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader.c')
-rw-r--r--src/loader.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/loader.c b/src/loader.c
index 40f3802..71c0e84 100644
--- a/src/loader.c
+++ b/src/loader.c
@@ -143,16 +143,6 @@ void imv_loader_time_passed(struct imv_loader *ldr, double dt)
}
}
-static void error_occurred(struct imv_loader *ldr)
-{
- pthread_mutex_lock(&ldr->lock);
- if(ldr->out_err) {
- free(ldr->out_err);
- }
- ldr->out_err = strdup(ldr->path);
- pthread_mutex_unlock(&ldr->lock);
-}
-
static void *bg_new_img(void *data)
{
/* so we can poll for it */
@@ -376,3 +366,13 @@ static void *bg_next_frame(void *data)
pthread_mutex_unlock(&ldr->lock);
return NULL;
}
+
+static void error_occurred(struct imv_loader *ldr)
+{
+ pthread_mutex_lock(&ldr->lock);
+ if(ldr->out_err) {
+ free(ldr->out_err);
+ }
+ ldr->out_err = strdup(ldr->path);
+ pthread_mutex_unlock(&ldr->lock);
+}