mirror of https://github.com/odrling/Aegisub
FFMS2 Add NoLog to the API
Originally committed to SVN as r2617.
This commit is contained in:
parent
7ddddeda65
commit
54c721cc49
|
@ -220,7 +220,7 @@ AVSValue __cdecl CreateSWScale(AVSValue Args, void* UserData, IScriptEnvironment
|
||||||
}
|
}
|
||||||
|
|
||||||
AVSValue __cdecl FFNoLog(AVSValue Args, void* UserData, IScriptEnvironment* Env) {
|
AVSValue __cdecl FFNoLog(AVSValue Args, void* UserData, IScriptEnvironment* Env) {
|
||||||
av_log_set_level(AV_LOG_QUIET);
|
FFMS_NoLog();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,10 @@ FFMS_API(void) FFMS_Init() {
|
||||||
InitDone = true;
|
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) {
|
FFMS_API(VideoBase *) FFMS_CreateVideoSource(const char *SourceFile, int Track, FrameIndex *TrackIndices, const char *PP, int Threads, int SeekMode, char *ErrorMsg, unsigned MsgSize) {
|
||||||
try {
|
try {
|
||||||
switch (TrackIndices->Decoder) {
|
switch (TrackIndices->Decoder) {
|
||||||
|
|
|
@ -160,6 +160,7 @@ struct AudioProperties {
|
||||||
// Most functions return 0 on success
|
// Most functions return 0 on success
|
||||||
// Functions without error message output can be assumed to never fail
|
// Functions without error message output can be assumed to never fail
|
||||||
FFMS_API(void) FFMS_Init();
|
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(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(AudioBase *) FFMS_CreateAudioSource(const char *SourceFile, int Track, FrameIndex *TrackIndices, char *ErrorMsg, unsigned MsgSize);
|
||||||
FFMS_API(void) FFMS_DestroyVideoSource(VideoBase *VB);
|
FFMS_API(void) FFMS_DestroyVideoSource(VideoBase *VB);
|
||||||
|
|
Loading…
Reference in New Issue