external/opencore
Revisión | cb88b4cff137df5bef1ebcb6840c4dde5b4f947d (tree) |
---|---|
Tiempo | 2010-03-31 06:58:53 |
Autor | PacketVideo CM <engbuild@pv.c...> |
Commiter | PacketVideo CM |
RIO-8844: A flag needs to be initialized correctly for decoder node codec config data not to be affected by inserting a pause command
Change-Id: I782f4eca512b48c7888843990876353a54038696
@@ -21,7 +21,7 @@ | ||
21 | 21 | // This header file is automatically generated at build-time |
22 | 22 | // *** OFFICIAL RELEASE INFO -- Will not auto update |
23 | 23 | |
24 | -#define PV2WAY_ENGINE_SDKINFO_LABEL "1342390" | |
24 | +#define PV2WAY_ENGINE_SDKINFO_LABEL "1342738" | |
25 | 25 | #define PV2WAY_ENGINE_SDKINFO_DATE 0x20100325 |
26 | 26 | |
27 | 27 | #endif //PV_2WAY_SDKINFO_H_INCLUDED |
@@ -21,7 +21,7 @@ | ||
21 | 21 | // This header file is automatically generated at build-time |
22 | 22 | // *** OFFICIAL RELEASE INFO -- Will not auto update |
23 | 23 | |
24 | -#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1342390" | |
24 | +#define PVAUTHOR_ENGINE_SDKINFO_LABEL "1342738" | |
25 | 25 | #define PVAUTHOR_ENGINE_SDKINFO_DATE 0x20100325 |
26 | 26 | |
27 | 27 | #endif //PV_AUTHOR_SDKINFO_H_INCLUDED |
@@ -21,7 +21,7 @@ | ||
21 | 21 | // This header file is automatically generated at build-time |
22 | 22 | // *** OFFICIAL RELEASE INFO -- Will not auto update |
23 | 23 | |
24 | -#define PVPLAYER_ENGINE_SDKINFO_LABEL "1342390" | |
24 | +#define PVPLAYER_ENGINE_SDKINFO_LABEL "1342738" | |
25 | 25 | #define PVPLAYER_ENGINE_SDKINFO_DATE 0x20100325 |
26 | 26 | |
27 | 27 | #endif //PV_PLAYER_SDKINFO_H_INCLUDED |
@@ -2049,6 +2049,10 @@ PVMFStatus PVMFOMXAudioDecNode::InitDecoder(PVMFSharedMediaDataPtr& DataIn) | ||
2049 | 2049 | iConfigDataBuffersOutstanding++; |
2050 | 2050 | iIsThereMoreConfigDataToBeSent = false; |
2051 | 2051 | } |
2052 | + else | |
2053 | + { | |
2054 | + iIsThereMoreConfigDataToBeSent = false; | |
2055 | + } | |
2052 | 2056 | |
2053 | 2057 | return PVMFSuccess; |
2054 | 2058 | } |
@@ -3490,12 +3490,7 @@ OSCL_EXPORT_REF void PVMFOMXBaseDecNode::HandleComponentStateChange(OMX_U32 deco | ||
3490 | 3490 | // this state can be reached either going from OMX_Loaded->OMX_Idle (preparing) |
3491 | 3491 | // or going from OMX_Executing->OMX_Idle (stopping) |
3492 | 3492 | |
3493 | - // reset the flag requiring config data processing by the component (even if it has been set previously) - | |
3494 | - // when we next send config data (if a data format requires it) - we may set this flag to true | |
3495 | - iIsConfigDataProcessingCompletionNeeded = false; | |
3496 | - iIsThereMoreConfigDataToBeSent = false; | |
3497 | - iConfigDataBuffersOutstanding = 0; // no need to keep track of this any more | |
3498 | - iConfigDataBytesProcessed = 0; | |
3493 | + | |
3499 | 3494 | |
3500 | 3495 | if (PVMF_GENERIC_NODE_PREPARE == iCurrentCommand.iCmd) |
3501 | 3496 | { |
@@ -4524,7 +4519,7 @@ OSCL_EXPORT_REF PVMFStatus PVMFOMXBaseDecNode::DoPrepare() | ||
4524 | 4519 | // reset the flag requiring config data processing by the component (even if it has been set previously) - |
4525 | 4520 | // when we send config data (if a data format requires it) - we may set this flag to true |
4526 | 4521 | iIsConfigDataProcessingCompletionNeeded = false; |
4527 | - iIsThereMoreConfigDataToBeSent = false; | |
4522 | + iIsThereMoreConfigDataToBeSent = true; | |
4528 | 4523 | iConfigDataBuffersOutstanding = 0; |
4529 | 4524 | iConfigDataBytesProcessed = 0; |
4530 | 4525 |
@@ -1295,11 +1295,11 @@ PVMFStatus PVMFOMXVideoDecNode::InitDecoder(PVMFSharedMediaDataPtr& DataIn) | ||
1295 | 1295 | |
1296 | 1296 | } |
1297 | 1297 | while (iConfigDataBytesProcessed < (uint8)initbufsize); |
1298 | + } | |
1299 | + // at this point, we've sent all there is to be sent | |
1300 | + iIsThereMoreConfigDataToBeSent = false; | |
1298 | 1301 | |
1299 | - // at this point, we've sent all there is to be sent | |
1300 | - iIsThereMoreConfigDataToBeSent = false; | |
1301 | 1302 | |
1302 | - } | |
1303 | 1303 | } |
1304 | 1304 | else if (Format == PVMF_MIME_H264_VIDEO_RAW) |
1305 | 1305 | { |
@@ -1342,11 +1342,11 @@ PVMFStatus PVMFOMXVideoDecNode::InitDecoder(PVMFSharedMediaDataPtr& DataIn) | ||
1342 | 1342 | iConfigDataBytesProcessed += (nal_length + sc_size); |
1343 | 1343 | } |
1344 | 1344 | while (size); |
1345 | + } | |
1346 | + // at this point, we've sent all there is to be sent | |
1347 | + iIsThereMoreConfigDataToBeSent = false; | |
1345 | 1348 | |
1346 | - // at this point, we've sent all there is to be sent | |
1347 | - iIsThereMoreConfigDataToBeSent = false; | |
1348 | 1349 | |
1349 | - } | |
1350 | 1350 | } |
1351 | 1351 | else if (Format == PVMF_MIME_M4V || |
1352 | 1352 | Format == PVMF_MIME_H2631998 || |
@@ -1377,6 +1377,10 @@ PVMFStatus PVMFOMXVideoDecNode::InitDecoder(PVMFSharedMediaDataPtr& DataIn) | ||
1377 | 1377 | iIsThereMoreConfigDataToBeSent = false; |
1378 | 1378 | |
1379 | 1379 | } |
1380 | + else | |
1381 | + { | |
1382 | + iIsThereMoreConfigDataToBeSent = false; | |
1383 | + } | |
1380 | 1384 | } |
1381 | 1385 | else if (Format == PVMF_MIME_WMV) |
1382 | 1386 | { |
@@ -1412,9 +1416,11 @@ PVMFStatus PVMFOMXVideoDecNode::InitDecoder(PVMFSharedMediaDataPtr& DataIn) | ||
1412 | 1416 | |
1413 | 1417 | // set the flag requiring config data processing by the component |
1414 | 1418 | iIsConfigDataProcessingCompletionNeeded = true; |
1415 | - // at this point, we've sent all there is to be sent | |
1416 | - iIsThereMoreConfigDataToBeSent = false; | |
1417 | 1419 | } |
1420 | + | |
1421 | + // at this point, we've sent all there is to be sent | |
1422 | + iIsThereMoreConfigDataToBeSent = false; | |
1423 | + | |
1418 | 1424 | } |
1419 | 1425 | else |
1420 | 1426 | { |