Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 25 files). Show all
Unified · Split
| @@ -350,7 +350,7 @@ int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpPa · 349 unmodified lines | |||
| 350 | * \note N/A | 350 | * \note N/A |
| 351 | ************************************************************************************* | 351 | ************************************************************************************* |
| 352 | */ | 352 | */ |
| 353 | int32_t WelsInitDecoder (PWelsDecoderContext pCtx, void* pTraceHandle, PWelsLogCallbackFunc pLog) { | 353 | int32_t WelsInitDecoder (PWelsDecoderContext pCtx) { |
| 354 | if (pCtx == NULL) { | 354 | if (pCtx == NULL) { |
| 355 | return ERR_INFO_INVALID_PTR; | 355 | return ERR_INFO_INVALID_PTR; |
| 356 | } | 356 | } |
| @@ -358,10 +358,6 @@ int32_t WelsInitDecoder (PWelsDecoderContext pCtx, void* pTraceHandle, PWelsLogC · 1 unmodified line | |||
| 358 | // default | 358 | // default |
| 359 | WelsDecoderDefaults (pCtx); | 359 | WelsDecoderDefaults (pCtx); |
| 360 | 360 | ||
| 361 | pCtx->pTraceHandle = pTraceHandle; | ||
| 362 | |||
| 363 | g_pLog = pLog; | ||
| 364 | |||
| 365 | // open decoder | 361 | // open decoder |
| 366 | WelsOpenDecoder (pCtx); | 362 | WelsOpenDecoder (pCtx); |
| 367 | 363 | ||