Partially solving issue 1788: "Crashing during processing of queue"
It also correct a bug of wrong image orientation (was wrong in the File Browser while good in the Editor tab) This patch also introduce several speed optimizations like: - switch between File Browser and Editor tab in Single Editor mode - asynchronous computation of the Batch Queue's thumbnails - quick start of RT even with a huge queue - less GUI overhead when applying a profile to multiple thumbs in the File Browser
This commit is contained in:
@@ -203,11 +203,14 @@ void FileBrowserEntry::updateImage (rtengine::IImage8* img, double scale, rtengi
|
||||
param->img = img;
|
||||
param->scale = scale;
|
||||
param->cropParams = cropParams;
|
||||
g_idle_add (updateImageUI, param);
|
||||
g_idle_add_full (G_PRIORITY_LOW, updateImageUI, param, NULL);
|
||||
}
|
||||
|
||||
void FileBrowserEntry::_updateImage (rtengine::IImage8* img, double s, rtengine::procparams::CropParams cropParams) {
|
||||
Glib::RWLock::WriterLock l(lockRW);
|
||||
|
||||
#if PROTECT_VECTORS
|
||||
MYWRITERLOCK(l, lockRW);
|
||||
#endif
|
||||
|
||||
redrawRequests--;
|
||||
scale = s;
|
||||
@@ -219,6 +222,8 @@ void FileBrowserEntry::_updateImage (rtengine::IImage8* img, double s, rtengine:
|
||||
if (preh == img->getHeight ()) {
|
||||
prew = img->getWidth ();
|
||||
|
||||
GThreadLock lock;
|
||||
|
||||
// Check if image has been rotated since last time
|
||||
rotated = preview!=NULL && newLandscape!=landscape;
|
||||
|
||||
|
Reference in New Issue
Block a user