shithub: openh264

Download patch

ref: a78217dd5b9c8262e63eb180a2ed04b93db595fd
parent: a136ba743425080f896ae125263c6b7c3759be6c
author: sijchen@cisco.com <sijchen@cisco.com>
date: Tue Mar 14 11:45:06 EDT 2017

fix a return value of push_back

--- a/codec/common/src/WelsThreadPool.cpp
+++ b/codec/common/src/WelsThreadPool.cpp
@@ -303,9 +303,7 @@
 bool  CWelsThreadPool::AddTaskToWaitedList (IWelsTask* pTask) {
   CWelsAutoLock  cLock (m_cLockWaitedTasks);
 
-  int32_t nRet = m_cWaitedTasks->push_back (pTask);
-  //fprintf(stdout, "CWelsThreadPool::AddTaskToWaitedList=%d, pTask=%x\n", m_cWaitedTasks->size(), pTask);
-  return (0 == nRet ? true : false);
+  return m_cWaitedTasks->push_back (pTask);
 }
 
 CWelsTaskThread*   CWelsThreadPool::GetIdleThread() {