Changeset 455
- Timestamp:
- 10/25/09 13:36:03 (4 weeks ago)
- Location:
- ImageMagick/trunk
- Files:
-
- 25 modified
-
magick/cache.c (modified) (1 diff)
-
magick/coder.c (modified) (1 diff)
-
magick/color.c (modified) (1 diff)
-
magick/configure.c (modified) (1 diff)
-
magick/constitute.c (modified) (8 diffs)
-
magick/delegate.c (modified) (1 diff)
-
magick/locale.c (modified) (1 diff)
-
magick/log.c (modified) (1 diff)
-
magick/magic.c (modified) (1 diff)
-
magick/magick.c (modified) (1 diff)
-
magick/mime.c (modified) (1 diff)
-
magick/module.c (modified) (1 diff)
-
magick/policy.c (modified) (1 diff)
-
magick/registry.c (modified) (1 diff)
-
magick/type.c (modified) (1 diff)
-
utilities/animate.c (modified) (2 diffs)
-
utilities/composite.c (modified) (2 diffs)
-
utilities/conjure.c (modified) (2 diffs)
-
utilities/convert.c (modified) (2 diffs)
-
utilities/display.c (modified) (2 diffs)
-
utilities/import.c (modified) (2 diffs)
-
utilities/mogrify.c (modified) (2 diffs)
-
utilities/montage.c (modified) (2 diffs)
-
utilities/stream.c (modified) (2 diffs)
-
wand/mogrify.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/trunk/magick/cache.c
r453 r455 204 204 (instantiate_cache == MagickFalse)) 205 205 { 206 AcquireSemaphoreInfo(&cache_semaphore); 206 if (cache_semaphore == (SemaphoreInfo *) NULL) 207 AcquireSemaphoreInfo(&cache_semaphore); 207 208 LockSemaphoreInfo(cache_semaphore); 208 209 if ((cache_resources == (SplayTreeInfo *) NULL) && -
ImageMagick/trunk/magick/coder.c
r453 r455 533 533 (instantiate_coder == MagickFalse)) 534 534 { 535 AcquireSemaphoreInfo(&coder_semaphore); 535 if (coder_semaphore == (SemaphoreInfo *) NULL) 536 AcquireSemaphoreInfo(&coder_semaphore); 536 537 LockSemaphoreInfo(coder_semaphore); 537 538 if ((coder_list == (SplayTreeInfo *) NULL) && -
ImageMagick/trunk/magick/color.c
r453 r455 1457 1457 (instantiate_color == MagickFalse)) 1458 1458 { 1459 AcquireSemaphoreInfo(&color_semaphore); 1459 if (color_semaphore == (SemaphoreInfo *) NULL) 1460 AcquireSemaphoreInfo(&color_semaphore); 1460 1461 LockSemaphoreInfo(color_semaphore); 1461 1462 if ((color_list == (LinkedListInfo *) NULL) && -
ImageMagick/trunk/magick/configure.c
r453 r455 869 869 (instantiate_configure == MagickFalse)) 870 870 { 871 AcquireSemaphoreInfo(&configure_semaphore); 871 if (configure_semaphore == (SemaphoreInfo *) NULL) 872 AcquireSemaphoreInfo(&configure_semaphore); 872 873 LockSemaphoreInfo(configure_semaphore); 873 874 if ((configure_list == (LinkedListInfo *) NULL) && -
ImageMagick/trunk/magick/constitute.c
r453 r455 511 511 } 512 512 image=NewImageList(); 513 if (constitute_semaphore == (SemaphoreInfo *) NULL) 514 AcquireSemaphoreInfo(&constitute_semaphore); 513 515 if ((magick_info != (const MagickInfo *) NULL) && 514 516 (GetImageDecoder(magick_info) != (DecodeImageHandler *) NULL)) … … 516 518 thread_support=GetMagickThreadSupport(magick_info); 517 519 if ((thread_support & DecoderThreadSupport) == 0) 518 { 519 AcquireSemaphoreInfo(&constitute_semaphore); 520 LockSemaphoreInfo(constitute_semaphore); 521 } 520 LockSemaphoreInfo(constitute_semaphore); 522 521 image=GetImageDecoder(magick_info)(read_info,exception); 523 522 if ((thread_support & DecoderThreadSupport) == 0) … … 551 550 *read_info->filename='\0'; 552 551 if (GetDelegateThreadSupport(delegate_info) == MagickFalse) 553 { 554 AcquireSemaphoreInfo(&constitute_semaphore); 555 LockSemaphoreInfo(constitute_semaphore); 556 } 552 LockSemaphoreInfo(constitute_semaphore); 557 553 (void) InvokeDelegate(read_info,image,read_info->magick,(char *) NULL, 558 554 exception); … … 578 574 thread_support=GetMagickThreadSupport(magick_info); 579 575 if ((thread_support & DecoderThreadSupport) == 0) 580 { 581 AcquireSemaphoreInfo(&constitute_semaphore); 582 LockSemaphoreInfo(constitute_semaphore); 583 } 576 LockSemaphoreInfo(constitute_semaphore); 584 577 image=(Image *) (GetImageDecoder(magick_info))(read_info,exception); 585 578 if ((thread_support & DecoderThreadSupport) == 0) … … 1102 1095 } 1103 1096 } 1097 if (constitute_semaphore == (SemaphoreInfo *) NULL) 1098 AcquireSemaphoreInfo(&constitute_semaphore); 1104 1099 if ((magick_info != (const MagickInfo *) NULL) && 1105 1100 (GetImageEncoder(magick_info) != (EncodeImageHandler *) NULL)) … … 1110 1105 thread_support=GetMagickThreadSupport(magick_info); 1111 1106 if ((thread_support & EncoderThreadSupport) == 0) 1112 { 1113 AcquireSemaphoreInfo(&constitute_semaphore); 1114 LockSemaphoreInfo(constitute_semaphore); 1115 } 1107 LockSemaphoreInfo(constitute_semaphore); 1116 1108 status=GetImageEncoder(magick_info)(write_info,image); 1117 1109 if ((thread_support & EncoderThreadSupport) == 0) … … 1129 1121 *write_info->filename='\0'; 1130 1122 if (GetDelegateThreadSupport(delegate_info) == MagickFalse) 1131 { 1132 AcquireSemaphoreInfo(&constitute_semaphore); 1133 LockSemaphoreInfo(constitute_semaphore); 1134 } 1123 LockSemaphoreInfo(constitute_semaphore); 1135 1124 status=InvokeDelegate(write_info,image,(char *) NULL, 1136 1125 write_info->magick,&image->exception); … … 1163 1152 thread_support=GetMagickThreadSupport(magick_info); 1164 1153 if ((thread_support & EncoderThreadSupport) == 0) 1165 { 1166 AcquireSemaphoreInfo(&constitute_semaphore); 1167 LockSemaphoreInfo(constitute_semaphore); 1168 } 1154 LockSemaphoreInfo(constitute_semaphore); 1169 1155 status=GetImageEncoder(magick_info)(write_info,image); 1170 1156 if ((thread_support & EncoderThreadSupport) == 0) -
ImageMagick/trunk/magick/delegate.c
r453 r455 709 709 (instantiate_delegate == MagickFalse)) 710 710 { 711 AcquireSemaphoreInfo(&delegate_semaphore); 711 if (delegate_semaphore == (SemaphoreInfo *) NULL) 712 AcquireSemaphoreInfo(&delegate_semaphore); 712 713 LockSemaphoreInfo(delegate_semaphore); 713 714 if ((delegate_list == (LinkedListInfo *) NULL) && -
ImageMagick/trunk/magick/locale.c
r453 r455 550 550 (instantiate_locale == MagickFalse)) 551 551 { 552 AcquireSemaphoreInfo(&locale_semaphore); 552 if (locale_semaphore == (SemaphoreInfo *) NULL) 553 AcquireSemaphoreInfo(&locale_semaphore); 553 554 LockSemaphoreInfo(locale_semaphore); 554 555 if ((locale_list == (SplayTreeInfo *) NULL) && -
ImageMagick/trunk/magick/log.c
r453 r455 531 531 if ((log_list == (LinkedListInfo *) NULL) && (instantiate_log == MagickFalse)) 532 532 { 533 AcquireSemaphoreInfo(&log_semaphore); 533 if (log_semaphore == (SemaphoreInfo *) NULL) 534 AcquireSemaphoreInfo(&log_semaphore); 534 535 LockSemaphoreInfo(log_semaphore); 535 536 if ((log_list == (LinkedListInfo *) NULL) && -
ImageMagick/trunk/magick/magic.c
r453 r455 523 523 (instantiate_magic == MagickFalse)) 524 524 { 525 AcquireSemaphoreInfo(&magic_semaphore); 525 if (magic_semaphore == (SemaphoreInfo *) NULL) 526 AcquireSemaphoreInfo(&magic_semaphore); 526 527 LockSemaphoreInfo(magic_semaphore); 527 528 if ((magic_list == (LinkedListInfo *) NULL) && -
ImageMagick/trunk/magick/magick.c
r453 r455 776 776 (instantiate_magick == MagickFalse)) 777 777 { 778 AcquireSemaphoreInfo(&magick_semaphore); 778 if (magick_semaphore == (SemaphoreInfo *) NULL) 779 AcquireSemaphoreInfo(&magick_semaphore); 779 780 LockSemaphoreInfo(magick_semaphore); 780 781 if ((magick_list == (SplayTreeInfo *) NULL) && -
ImageMagick/trunk/magick/mime.c
r453 r455 605 605 (instantiate_mime == MagickFalse)) 606 606 { 607 AcquireSemaphoreInfo(&mime_semaphore); 607 if (mime_semaphore == (SemaphoreInfo *) NULL) 608 AcquireSemaphoreInfo(&mime_semaphore); 608 609 LockSemaphoreInfo(mime_semaphore); 609 610 if ((mime_list == (LinkedListInfo *) NULL) && -
ImageMagick/trunk/magick/module.c
r453 r455 848 848 (instantiate_module == MagickFalse)) 849 849 { 850 AcquireSemaphoreInfo(&module_semaphore); 850 if (module_semaphore == (SemaphoreInfo *) NULL) 851 AcquireSemaphoreInfo(&module_semaphore); 851 852 LockSemaphoreInfo(module_semaphore); 852 853 if ((module_list == (SplayTreeInfo *) NULL) && -
ImageMagick/trunk/magick/policy.c
r453 r455 429 429 (instantiate_policy == MagickFalse)) 430 430 { 431 AcquireSemaphoreInfo(&policy_semaphore); 431 if (policy_semaphore == (SemaphoreInfo *) NULL) 432 AcquireSemaphoreInfo(&policy_semaphore); 432 433 LockSemaphoreInfo(policy_semaphore); 433 434 if ((policy_list == (LinkedListInfo *) NULL) && -
ImageMagick/trunk/magick/registry.c
r453 r455 526 526 (instantiate_registry == MagickFalse)) 527 527 { 528 AcquireSemaphoreInfo(®istry_semaphore); 528 if (registry_semaphore == (SemaphoreInfo *) NULL) 529 AcquireSemaphoreInfo(®istry_semaphore); 529 530 LockSemaphoreInfo(registry_semaphore); 530 531 if ((registry == (SplayTreeInfo *) NULL) && -
ImageMagick/trunk/magick/type.c
r453 r455 772 772 (instantiate_type == MagickFalse)) 773 773 { 774 AcquireSemaphoreInfo(&type_semaphore); 774 if (type_semaphore == (SemaphoreInfo *) NULL) 775 AcquireSemaphoreInfo(&type_semaphore); 775 776 LockSemaphoreInfo(type_semaphore); 776 777 if ((type_list == (SplayTreeInfo *) NULL) && -
ImageMagick/trunk/utilities/animate.c
r451 r455 85 85 int main(int argc,char **argv) 86 86 { 87 char88 *metadata;89 90 87 ExceptionInfo 91 88 *exception; … … 100 97 exception=AcquireExceptionInfo(); 101 98 image_info=AcquireImageInfo(); 102 metadata=(char *) NULL;103 99 status=MagickCommandGenesis(image_info,AnimateImageCommand,argc,argv, 104 &metadata,exception); 105 if (metadata != (char *) NULL) 106 metadata=DestroyString(metadata); 100 (char **) NULL,exception); 107 101 image_info=DestroyImageInfo(image_info); 108 102 exception=DestroyExceptionInfo(exception); -
ImageMagick/trunk/utilities/composite.c
r451 r455 60 60 int main(int argc,char **argv) 61 61 { 62 char63 *metadata;64 65 62 ExceptionInfo 66 63 *exception; … … 75 72 exception=AcquireExceptionInfo(); 76 73 image_info=AcquireImageInfo(); 77 metadata=(char *) NULL;78 74 status=MagickCommandGenesis(image_info,CompositeImageCommand,argc,argv, 79 &metadata,exception); 80 if (metadata != (char *) NULL) 81 metadata=DestroyString(metadata); 75 (char **) NULL,exception); 82 76 image_info=DestroyImageInfo(image_info); 83 77 exception=DestroyExceptionInfo(exception); -
ImageMagick/trunk/utilities/conjure.c
r451 r455 79 79 int main(int argc,char **argv) 80 80 { 81 char82 *metadata;83 84 81 ExceptionInfo 85 82 *exception; … … 94 91 exception=AcquireExceptionInfo(); 95 92 image_info=AcquireImageInfo(); 96 metadata=(char *) NULL;97 93 status=MagickCommandGenesis(image_info,ConjureImageCommand,argc,argv, 98 &metadata,exception); 99 if (metadata != (char *) NULL) 100 metadata=DestroyString(metadata); 94 (char **) NULL,exception); 101 95 image_info=DestroyImageInfo(image_info); 102 96 exception=DestroyExceptionInfo(exception); -
ImageMagick/trunk/utilities/convert.c
r451 r455 66 66 int main(int argc,char **argv) 67 67 { 68 char69 *metadata;70 71 68 ExceptionInfo 72 69 *exception; … … 81 78 exception=AcquireExceptionInfo(); 82 79 image_info=AcquireImageInfo(); 83 metadata=(char *) NULL;84 80 status=MagickCommandGenesis(image_info,ConvertImageCommand,argc,argv, 85 &metadata,exception); 86 if (metadata != (char *) NULL) 87 metadata=DestroyString(metadata); 81 (char **) NULL,exception); 88 82 image_info=DestroyImageInfo(image_info); 89 83 exception=DestroyExceptionInfo(exception); -
ImageMagick/trunk/utilities/display.c
r451 r455 90 90 int main(int argc,char **argv) 91 91 { 92 char93 *metadata;94 95 92 ExceptionInfo 96 93 *exception; … … 105 102 exception=AcquireExceptionInfo(); 106 103 image_info=AcquireImageInfo(); 107 metadata=(char *) NULL;108 104 status=MagickCommandGenesis(image_info,DisplayImageCommand,argc,argv, 109 &metadata,exception); 110 if (metadata != (char *) NULL) 111 metadata=DestroyString(metadata); 105 (char **) NULL,exception); 112 106 image_info=DestroyImageInfo(image_info); 113 107 exception=DestroyExceptionInfo(exception); -
ImageMagick/trunk/utilities/import.c
r451 r455 82 82 int main(int argc,char **argv) 83 83 { 84 char85 *metadata;86 87 84 ExceptionInfo 88 85 *exception; … … 97 94 exception=AcquireExceptionInfo(); 98 95 image_info=AcquireImageInfo(); 99 metadata=(char *) NULL;100 96 status=MagickCommandGenesis(image_info,ImportImageCommand,argc,argv, 101 &metadata,exception); 102 if (metadata != (char *) NULL) 103 metadata=DestroyString(metadata); 97 (char *) NULL,exception); 104 98 image_info=DestroyImageInfo(image_info); 105 99 exception=DestroyExceptionInfo(exception); -
ImageMagick/trunk/utilities/mogrify.c
r451 r455 62 62 int main(int argc,char **argv) 63 63 { 64 char65 *metadata;66 67 64 ExceptionInfo 68 65 *exception; … … 77 74 exception=AcquireExceptionInfo(); 78 75 image_info=AcquireImageInfo(); 79 metadata=(char *) NULL;80 76 status=MagickCommandGenesis(image_info,ImportImageCommand,argc,argv, 81 &metadata,exception); 82 if (metadata != (char *) NULL) 83 metadata=DestroyString(metadata); 77 (char **) NULL,exception); 84 78 image_info=DestroyImageInfo(image_info); 85 79 exception=DestroyExceptionInfo(exception); -
ImageMagick/trunk/utilities/montage.c
r451 r455 62 62 int main(int argc,char **argv) 63 63 { 64 char65 *metadata;66 67 64 ExceptionInfo 68 65 *exception; … … 77 74 exception=AcquireExceptionInfo(); 78 75 image_info=AcquireImageInfo(); 79 metadata=(char *) NULL;80 76 status=MagickCommandGenesis(image_info,MontageImageCommand,argc,argv, 81 &metadata,exception); 82 if (metadata != (char *) NULL) 83 metadata=DestroyString(metadata); 77 (char **) NULL,exception); 84 78 image_info=DestroyImageInfo(image_info); 85 79 exception=DestroyExceptionInfo(exception); -
ImageMagick/trunk/utilities/stream.c
r451 r455 62 62 int main(int argc,char **argv) 63 63 { 64 char65 *metadata;66 67 64 ExceptionInfo 68 65 *exception; … … 77 74 exception=AcquireExceptionInfo(); 78 75 image_info=AcquireImageInfo(); 79 metadata=(char *) NULL;80 76 status=MagickCommandGenesis(image_info,StreamImageCommand,argc,argv, 81 &metadata,exception); 82 if (metadata != (char *) NULL) 83 metadata=DestroyString(metadata); 77 (char **) NULL,exception); 84 78 image_info=DestroyImageInfo(image_info); 85 79 exception=DestroyExceptionInfo(exception); -
ImageMagick/trunk/wand/mogrify.c
r451 r455 183 183 CatchException(exception); 184 184 } 185 if ( *metadata != (char *) NULL)185 if ((metadata != (char *) NULL) && (*metadata != (char *) NULL)) 186 186 { 187 187 (void) fputs(*metadata,stdout);
