|
|
|
@ -1664,11 +1664,14 @@ void servaVideoComposer::m_fThreadProc(void){ |
|
|
|
|
|
|
|
char tB[256]; |
|
|
|
m_bThreadStatus = TH_WORKING; |
|
|
|
uint8_t perc = 0; |
|
|
|
uint8_t operc = 0; |
|
|
|
for ( uint64_t CurrentTS = BeginnhingTS; CurrentTS < EndTS && m_bThreadStatus < TH_ENDED; CurrentTS += FramePT ) { |
|
|
|
uint8_t perc = (uint8_t)(( CurrentTS - BeginnhingTS ) * 100 ) / ( EndTS - BeginnhingTS ); |
|
|
|
|
|
|
|
m_pDBC->updateMediaComposerItem( m_uComposerRecordId, 'L', perc ); |
|
|
|
|
|
|
|
uint8_t perc = (uint8_t)((( CurrentTS - BeginnhingTS ) * 100 ) / ( EndTS - BeginnhingTS )); |
|
|
|
if ( operc != perc ) { |
|
|
|
operc = perc; |
|
|
|
m_pDBC->updateMediaComposerItem(m_uComposerRecordId, 'L', perc); |
|
|
|
}; |
|
|
|
if( ( m_bComposerStatus & VIDEO_COMPOSER_LOK ) == VIDEO_COMPOSER_LOK ){ |
|
|
|
uint64_t csts = ((uint64_t)m_vLVideoQueue[L_idx]->sts ) * 1000 + m_vLVideoQueue[L_idx]->sms; |
|
|
|
if ( L_global_sts == 0 ) L_global_sts = csts; |
|
|
|
|