Skip to content

Commit

Permalink
fix vc link error
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Oct 17, 2015
1 parent 54a7f2c commit 12e6b67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/AudioResampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
namespace QtAV {
FACTORY_DEFINE(AudioResampler)

extern void RegisterAudioResamplerFF_Man();
extern void RegisterAudioResamplerLibav_Man();
void AudioResampler::registerAll()
{
static bool done = false;
if (done)
return;
done = true;
#if QTAV_HAVE(SWRESAMPLE)
extern void RegisterAudioResamplerFF_Man();
RegisterAudioResamplerFF_Man();
#endif
#if QTAV_HAVE(AVRESAMPLE)
extern void RegisterAudioResamplerLibav_Man();
RegisterAudioResamplerLibav_Man();
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions src/codec/audio/AudioDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@

namespace QtAV {
FACTORY_DEFINE(AudioDecoder)

// TODO: why vc can not declare extern func in a class member? resolved as &func@@YAXXZ
extern void RegisterAudioDecoderFFmpeg_Man();
void AudioDecoder::registerAll() {
static bool done = false;
if (done)
return;
done = true;
extern void RegisterAudioDecoderFFmpeg_Man();
RegisterAudioDecoderFFmpeg_Man();
}

Expand Down

0 comments on commit 12e6b67

Please sign in to comment.