diff --git a/include/dindexer-machinery/scantask/mediatype.hpp b/include/dindexer-machinery/scantask/mediatype.hpp index 5b79c98..616b95d 100644 --- a/include/dindexer-machinery/scantask/mediatype.hpp +++ b/include/dindexer-machinery/scantask/mediatype.hpp @@ -41,8 +41,8 @@ namespace mchlib { SetTaskType m_set_task; MediaTypes m_default; -#if defined(WITH_MEDIA_AUTODETECT) std::string m_search_path; +#if defined(WITH_MEDIA_AUTODETECT) bool m_force; #endif }; diff --git a/src/machinery/scantask/mediatype.cpp b/src/machinery/scantask/mediatype.cpp index ddd244a..bc6e48b 100644 --- a/src/machinery/scantask/mediatype.cpp +++ b/src/machinery/scantask/mediatype.cpp @@ -29,15 +29,14 @@ namespace mchlib { MediaType::MediaType (SetTaskType parSet, char parDefault, bool parForce, std::string parSearchPath) : m_set_task(parSet), m_default(char_to_media_type(parDefault)) -#if defined(WITH_MEDIA_AUTODETECT) , m_search_path(std::move(parSearchPath)) +#if defined(WITH_MEDIA_AUTODETECT) , m_force(parForce) #endif { assert(m_set_task); #if !defined(WITH_MEDIA_AUTODETECT) static_cast(parForce); - static_cast(parSearchPath); #endif }