File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ add_definitions(-DAVTRANSCODER_VERSION_MAJOR=${AVTRANSCODER_VERSION_MAJOR})
13
13
add_definitions (-DAVTRANSCODER_VERSION_MINOR=${AVTRANSCODER_VERSION_MINOR} )
14
14
add_definitions (-DAVTRANSCODER_VERSION_MICRO=${AVTRANSCODER_VERSION_MICRO} )
15
15
16
+ # Define AvTranscoder default path to profiles
17
+ add_definitions (-DAVTRANSCODER_DEFAULT_AVPROFILES= "${CMAKE_INSTALL_PREFIX} /share/ressource" )
18
+
16
19
# Diplay commands being ran by CMake
17
20
set (CMAKE_VERBOSE_MAKEFILE OFF )
18
21
Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ void ProfileLoader::loadProfiles( const std::string& avProfilesPath )
40
40
std::string realAvProfilesPath = avProfilesPath;
41
41
if ( realAvProfilesPath.empty () )
42
42
{
43
+ // get custom profiles location from AVPROFILES environment variable
43
44
if ( std::getenv ( " AVPROFILES" ) )
44
45
realAvProfilesPath = std::getenv ( " AVPROFILES" );
46
+ // else get default profiles location
45
47
else
46
- return ;
48
+ realAvProfilesPath = AVTRANSCODER_DEFAULT_AVPROFILES ;
47
49
}
48
50
49
51
std::vector< std::string > paths;
You can’t perform that action at this time.
0 commit comments