LoggerD("Enter");
unsigned int* callbackId = (unsigned int*) user_data;
+ if (nullptr == callbackId) {
+ LoggerD("Callback id is null");
+ return;
+ }
if (!(ContentManager::getInstance()->getContentInstance())) {
// There is not instance already
("Getting media is failed: %d (%s)", ret, get_error_message(ret)));
}
- ret = media_info_create_thumbnail(media, CreateThumbnailCallback, /* (void*) callbackId */ nullptr);
+ ret = media_info_create_thumbnail(media, CreateThumbnailCallback, (void*)callbackId);
media_info_destroy(media);
if(MEDIA_CONTENT_ERROR_NONE != ret) {
delete callbackId;
("Creating thumbnail failed: %d (%s)", ret, get_error_message(ret)));
}
- delete callbackId;
-
return PlatformResult(ErrorCode::NO_ERROR);
}