|
@@ -409,6 +409,19 @@ void la_FileBrowserGetFullPath(laFileBrowser *fb,char* buf){
|
|
strcat(buf, fb->FileName);
|
|
strcat(buf, fb->FileName);
|
|
}
|
|
}
|
|
void la_FileBrowserRefreshThumbnail(laFileBrowser* fb){
|
|
void la_FileBrowserRefreshThumbnail(laFileBrowser* fb){
|
|
|
|
+ if(MAIN.ThumbnailProp && fb->Active && fb->Active->Type==LA_FILETYPE_UDF){
|
|
|
|
+ char* prop=SSTR(MAIN.ThumbnailProp); if(prop[0]){
|
|
|
|
+ char fbuf[2048];la_FileBrowserGetFullPath(fb,fbuf);
|
|
|
|
+ FILE* fpudf=fopen(fbuf,"rb"); if(fpudf){
|
|
|
|
+ void* data=0; size_t size=0;
|
|
|
|
+ if(laExtractQuickRaw(fpudf,prop,&data,&size)){
|
|
|
|
+ tnsRefreshImage(fb->Thumbnail,data);
|
|
|
|
+ fclose(fpudf); return;
|
|
|
|
+ }
|
|
|
|
+ fclose(fpudf);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
#ifdef __linux__
|
|
#ifdef __linux__
|
|
char buf[2048]="file://"; char md5[128];
|
|
char buf[2048]="file://"; char md5[128];
|
|
la_FileBrowserGetFullPath(fb,buf+strlen(buf));
|
|
la_FileBrowserGetFullPath(fb,buf+strlen(buf));
|