This patch may not be perfect, but works for me(tm).

What is important is that it shows that the queued photo settings
are ignored, maybe you know a better way to achieve what this patch
does..

So this patch is more like a proof of concept for the fix :-)

# HG changeset patch
# User Edouard Gomez <[EMAIL PROTECTED]>
# Date 1176326833 -7200
# Node ID 705dc197e6aeb73f3dcfe39d0d21de9bd572fd47
# Parent  d18a7aa736779342a141e34218148ec87cc1f60f
Use correct photo settings in batch processing

diff -r d18a7aa73677 -r 705dc197e6ae src/rs-batch.c
--- a/src/rs-batch.c    Mon Apr 09 20:58:26 2007 +0000
+++ b/src/rs-batch.c    Wed Apr 11 23:27:13 2007 +0200
@@ -345,6 +345,8 @@ rs_batch_process(RS_QUEUE *queue)
                        photo = filetype->load(e->filename);
                        if (photo)
                        {
+                               gint current_setting;
+
                                if (filetype->load_meta)
                                        filetype->load_meta(e->filename, 
photo->metadata);
                                filename = g_string_new(queue->directory);
@@ -370,6 +372,9 @@ rs_batch_process(RS_QUEUE *queue)
 
                                parsed_filename = filename_parse(filename->str, 
photo);
                                rs_cache_load(photo);
+
+                               current_setting = photo->current_setting;
+                               photo->current_setting = e->setting_id;
                                rs_photo_prepare(photo);
 
                                switch (queue->size_lock)
@@ -424,6 +429,7 @@ rs_batch_process(RS_QUEUE *queue)
                                g_free(parsed_filename);
                                g_string_free(filename, TRUE);
                                
g_free(photo->settings[photo->current_setting]->curve_samples);
+                               photo->current_setting = current_setting;
                                rs_photo_free(photo);
                        }
                        photo = NULL;

-- 
Edouard Gomez

_______________________________________________
Rawstudio-dev mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-dev

Reply via email to