Skip to content

Commit

Permalink
Fix atrailers build
Browse files Browse the repository at this point in the history
i2i function is used in atrailers_service.cc but this function is
defined only if defined(HAVE_JS) || defined(HAVE_TAGLIB) ||
defined(YOUTUBE) || defined(HAVE_LIBMP4V2) as a result compilation
fails if HAVE_CURL is set but HAVE_JS and HAVE_TAGLIG are not.
As youtube and libmp4v2 support have been dropped, replace those by
ATRAILERS in this list.

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  • Loading branch information
ffontaine committed May 12, 2018
1 parent f009226 commit 5d4c24b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/string_converter.cc
Expand Up @@ -226,7 +226,7 @@ Ref<StringConverter> StringConverter::p2i()
}
#endif

#if defined (HAVE_JS) || defined(HAVE_TAGLIB) || defined(YOUTUBE) || defined(HAVE_LIBMP4V2)
#if defined (HAVE_JS) || defined(HAVE_TAGLIB) || defined(ATRAILERS)

Ref<StringConverter> StringConverter::i2i()
{
Expand Down
2 changes: 1 addition & 1 deletion src/string_converter.h
Expand Up @@ -66,7 +66,7 @@ class StringConverter : public zmm::Object
static zmm::Ref<StringConverter> p2i();

#endif
#if defined(HAVE_JS) || defined(HAVE_TAGLIB) || defined(YOUTUBE) || defined(HAVE_LIBMP4V2)
#if defined(HAVE_JS) || defined(HAVE_TAGLIB) || defined(ATRAILERS)
/// \brief safeguard - internal to internal - needed to catch some
/// scenarious where the user may have forgotten to add proper conversion
/// in the script.
Expand Down

0 comments on commit 5d4c24b

Please sign in to comment.