VikWaypoint *current_wp = vik_trw_layer_get_waypoint ( options->vtl, name );
if ( current_wp ) {
// Existing wp found, so set new position, comment and image
- current_wp = a_geotag_waypoint_positioned ( options->image, wp->coord, wp->altitude, &name, current_wp );
+ (void)a_geotag_waypoint_positioned ( options->image, wp->coord, wp->altitude, &name, current_wp );
updated_waypoint = TRUE;
}
}
VikWaypoint *wp = vik_trw_layer_get_waypoint ( options->vtl, name );
if ( wp ) {
// Found, so set new position, comment and image
- wp = a_geotag_waypoint_positioned ( options->image, options->coord, options->altitude, &name, wp );
+ (void)a_geotag_waypoint_positioned ( options->image, options->coord, options->altitude, &name, wp );
updated_waypoint = TRUE;
}
g_free ( name );
gchar *tmp = g_strdup_printf ( _("Geotagging %d Images..."), len );
// Processing lots of files can take time - so run a background effort
- a_background_thread ( VIK_GTK_WINDOW_FROM_LAYER(options->vtl),
- tmp,
- (vik_thr_func) trw_layer_geotag_thread,
- options,
- (vik_thr_free_func) trw_layer_geotag_thread_free,
- NULL,
- len );
+ a_background_thread ( BACKGROUND_POOL_LOCAL,
+ VIK_GTK_WINDOW_FROM_LAYER(options->vtl),
+ tmp,
+ (vik_thr_func) trw_layer_geotag_thread,
+ options,
+ (vik_thr_free_func) trw_layer_geotag_thread_free,
+ NULL,
+ len );
g_free ( tmp );