As long as WelsFileHandle* is equal to FILE* this doesn't matter, but for consistency use the WelsF* functions for all handles opened by WelsFopen, and use WelsFileHandle* as type for it instead of FILE*.
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 6 files). Show all
Unified · Split
| @@ -1789,7 +1789,7 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { · 1788 unmodified lines | |||
| 1789 | 1789 | ||
| 1790 | #ifdef ENABLE_TRACE_FILE | 1790 | #ifdef ENABLE_TRACE_FILE |
| 1791 | if (NULL != pCtx->pFileLog) { | 1791 | if (NULL != pCtx->pFileLog) { |
| 1792 | fclose (pCtx->pFileLog); | 1792 | WelsFclose (pCtx->pFileLog); |
| 1793 | pCtx->pFileLog = NULL; | 1793 | pCtx->pFileLog = NULL; |
| 1794 | } | 1794 | } |
| 1795 | pCtx->uiSizeLog = 0; | 1795 | pCtx->uiSizeLog = 0; |