FFMS2 Add NoLog to the API

Originally committed to SVN as r2617.
This commit is contained in:
Fredrik Mellbin 2009-01-03 15:17:53 +00:00
parent 7ddddeda65
commit 54c721cc49
3 changed files with 6 additions and 1 deletions

View File

@ -220,7 +220,7 @@ AVSValue __cdecl CreateSWScale(AVSValue Args, void* UserData, IScriptEnvironment
}
AVSValue __cdecl FFNoLog(AVSValue Args, void* UserData, IScriptEnvironment* Env) {
av_log_set_level(AV_LOG_QUIET);
FFMS_NoLog();
return 0;
}

View File

@ -54,6 +54,10 @@ FFMS_API(void) FFMS_Init() {
InitDone = true;
}
FFMS_API(void) FFMS_NoLog() {
av_log_set_level(AV_LOG_QUIET);
}
FFMS_API(VideoBase *) FFMS_CreateVideoSource(const char *SourceFile, int Track, FrameIndex *TrackIndices, const char *PP, int Threads, int SeekMode, char *ErrorMsg, unsigned MsgSize) {
try {
switch (TrackIndices->Decoder) {

View File

@ -160,6 +160,7 @@ struct AudioProperties {
// Most functions return 0 on success
// Functions without error message output can be assumed to never fail
FFMS_API(void) FFMS_Init();
FFMS_API(void) FFMS_NoLog();
FFMS_API(VideoBase *) FFMS_CreateVideoSource(const char *SourceFile, int Track, FrameIndex *TrackIndices, const char *PP, int Threads, int SeekMode, char *ErrorMsg, unsigned MsgSize);
FFMS_API(AudioBase *) FFMS_CreateAudioSource(const char *SourceFile, int Track, FrameIndex *TrackIndices, char *ErrorMsg, unsigned MsgSize);
FFMS_API(void) FFMS_DestroyVideoSource(VideoBase *VB);