|
|
|
@ -181,9 +181,8 @@ void CCodecStream::Task(void)
|
|
|
|
// pop the original packet
|
|
|
|
// pop the original packet
|
|
|
|
if ( !m_LocalQueue.empty() )
|
|
|
|
if ( !m_LocalQueue.empty() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
auto Packet = m_LocalQueue.front();
|
|
|
|
auto Packet = m_LocalQueue.pop();
|
|
|
|
auto Frame = (CDvFramePacket *)Packet.get();
|
|
|
|
auto Frame = (CDvFramePacket *)Packet.get();
|
|
|
|
m_LocalQueue.pop();
|
|
|
|
|
|
|
|
// todo: check the PID
|
|
|
|
// todo: check the PID
|
|
|
|
// update content with transcoded ambe
|
|
|
|
// update content with transcoded ambe
|
|
|
|
Frame->SetAmbe(m_uiCodecOut, Ambe);
|
|
|
|
Frame->SetAmbe(m_uiCodecOut, Ambe);
|
|
|
|
@ -208,9 +207,8 @@ void CCodecStream::Task(void)
|
|
|
|
while ( !empty() )
|
|
|
|
while ( !empty() )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// yes, pop it from queue
|
|
|
|
// yes, pop it from queue
|
|
|
|
auto Packet = front();
|
|
|
|
auto Packet = pop();
|
|
|
|
auto Frame = (CDvFramePacket *)Packet.get();
|
|
|
|
auto Frame = (CDvFramePacket *)Packet.get();
|
|
|
|
pop();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// yes, send to ambed
|
|
|
|
// yes, send to ambed
|
|
|
|
// this assume that thread pushing the Packet
|
|
|
|
// this assume that thread pushing the Packet
|
|
|
|
|