Skip to content

Commit

Permalink
Better error message for heif_suberror_No_matching_decoder_installed …
Browse files Browse the repository at this point in the history
…when plugins are disabled (#1250)
  • Loading branch information
farindk committed Nov 23, 2024
1 parent 81cc81a commit 5bccf49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libheif/error.cc
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@ const char* Error::get_error_string(heif_suberror_code err)
case heif_suberror_Cannot_read_plugin_directory:
return "Error while scanning the directory for plugins";
case heif_suberror_No_matching_decoder_installed:
#if ENABLE_PLUGIN_LOADING
return "No decoding plugin installed for this compression format";
#else
return "Support for this compression format has not been built in";
#endif
}

assert(false);
Expand Down

0 comments on commit 5bccf49

Please sign in to comment.