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
127127 /*
128128 * fill data fields in default for decoder context
129129 */
130−void WelsDecoderDefaults (PWelsDecoderContext pCtx) {
130+void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) {
131131 int32_t iCpuCores = 1;
132132 memset (pCtx, 0, sizeof (SWelsDecoderContext)); // fill zero first
133+ pCtx->sLogCtx = *pLogCtx;
133134
134135 pCtx->pArgDec = NULL;
135136
@@ -350,13 +351,13 @@ int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpPa · 214 unmodified lines
350351 * \note N/A
351352 *************************************************************************************
352353 */
353−int32_t WelsInitDecoder (PWelsDecoderContext pCtx) {
354+int32_t WelsInitDecoder (PWelsDecoderContext pCtx, SLogContext* pLogCtx) {
354355 if (pCtx == NULL) {
355356 return ERR_INFO_INVALID_PTR;
356357 }
357358
358359 // default
359− WelsDecoderDefaults (pCtx);
360+ WelsDecoderDefaults (pCtx, pLogCtx);
360361
361362 // open decoder
362363 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