History

Set a log context in the decoder

Martin Storsjö committed 12 years ago

Commit b2cf56c1 parent 9583ac43 files · +21 −14Browse files

Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 3 files). Show all

Unified · Split

codec/decoder/core/src/decoder.cpp+4−3
@@ -127,9 +127,10 @@ static void DestroyPicBuff (PPicBuff* ppPicBuf) { · 126 unmodified lines
127/*127/*
128 * fill data fields in default for decoder context128 * fill data fields in default for decoder context
129 */129 */
130void WelsDecoderDefaults (PWelsDecoderContext pCtx) {130void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) {
131 int32_t iCpuCores = 1;131 int32_t iCpuCores = 1;
132 memset (pCtx, 0, sizeof (SWelsDecoderContext)); // fill zero first132 memset (pCtx, 0, sizeof (SWelsDecoderContext)); // fill zero first
133 pCtx->sLogCtx = *pLogCtx;
133 134
134 pCtx->pArgDec = NULL;135 pCtx->pArgDec = NULL;
135 136
@@ -350,13 +351,13 @@ int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpPa · 214 unmodified lines
350 * \note N/A351 * \note N/A
351 *************************************************************************************352 *************************************************************************************
352 */353 */
353int32_t WelsInitDecoder (PWelsDecoderContext pCtx) {354int32_t WelsInitDecoder (PWelsDecoderContext pCtx, SLogContext* pLogCtx) {
354 if (pCtx == NULL) {355 if (pCtx == NULL) {
355 return ERR_INFO_INVALID_PTR;356 return ERR_INFO_INVALID_PTR;
356 }357 }
357 358
358 // default359 // default
359 WelsDecoderDefaults (pCtx);360 WelsDecoderDefaults (pCtx, pLogCtx);
360 361
361 // open decoder362 // open decoder
362 WelsOpenDecoder (pCtx);363 WelsOpenDecoder (pCtx);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t