Skip to content

Commit c032b65

Browse files
author
Clement Champetier
committed
Profile: can loadProfiles with the constructor
By default the list of profiles is not loaded.
1 parent d267ec5 commit c032b65

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/AvTranscoder/Profile.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ const std::string Profile::avProfileTypeVideo( "avProfileTypeVideo" );
2121
const std::string Profile::avProfileTypeAudio( "avProfileTypeAudio" );
2222

2323

24-
Profile::Profile()
24+
Profile::Profile( bool autoload )
2525
{
26-
26+
if( autoload )
27+
loadProfiles();
2728
}
2829

2930
void Profile::loadProfiles()

src/AvTranscoder/Profile.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Profile
2323
typedef std::map< std::string, std::string > ProfileDesc;
2424
typedef std::vector< ProfileDesc > ProfilesDesc;
2525

26-
Profile();
26+
Profile( bool autoload = false );
2727

2828
void loadProfiles();
2929

0 commit comments

Comments
 (0)