Skip to content

Commit df2b8be

Browse files
author
Clement Champetier
committed
ProfileLoader: print a profile is skipped by SWIG
1 parent cdbc5e5 commit df2b8be

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/AvTranscoder/profile/ProfileLoader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,13 @@ bool ProfileLoader::checkAudioProfile( const Profile& profileToCheck ) const
220220
return isValid;
221221
}
222222

223-
// To print a profile
223+
#ifndef SWIG
224224
std::ostream &operator<<( std::ostream &os, const ProfileLoader::Profile &profile )
225225
{
226226
for( ProfileLoader::Profile::const_iterator it = profile.begin(); it != profile.end(); ++it )
227227
os << "(" << it->first << ", " << it->second << ")" << std::endl;
228228
return os;
229229
}
230+
#endif
230231

231232
}

src/AvTranscoder/profile/ProfileLoader.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ class AvExport ProfileLoader
7676
Profiles _profiles;
7777
};
7878

79+
#ifndef SWIG
7980
// To print a profile
8081
std::ostream &operator<<( std::ostream &os, const ProfileLoader::Profile &profile );
82+
#endif
8183

8284
}
8385
#endif

0 commit comments

Comments
 (0)