shithub: openh264

Download patch

ref: 98ff18d15d172fe7fdae2ded0070e119bc3b0b3b
parent: e68f435a849e7d7cddb4464a6d02f1e2c15cefd5
author: Varun B Patil <[email protected]>
date: Thu Jan 16 19:49:16 EST 2014

fix typo

--- a/codec/WelsThreadLib/api/WelsThreadLib.h
+++ b/codec/WelsThreadLib/api/WelsThreadLib.h
@@ -98,10 +98,10 @@
 } WelsLogicalProcessInfo;
 
 #define    WELS_THREAD_ERROR_OK					0
-#define    WELS_THREAD_ERROR_GENERIAL			((uint32_t)(-1))
+#define    WELS_THREAD_ERROR_GENERAL			((uint32_t)(-1))
 #define    WELS_THREAD_ERROR_WAIT_OBJECT_0		0
 #define	   WELS_THREAD_ERROR_WAIT_TIMEOUT		((uint32_t)0x00000102L)
-#define	   WELS_THREAD_ERROR_WAIT_FAILED		WELS_THREAD_ERROR_GENERIAL
+#define	   WELS_THREAD_ERROR_WAIT_FAILED		WELS_THREAD_ERROR_GENERAL
 
 void WelsSleep (uint32_t dwMilliseconds);
 WELS_THREAD_ERROR_CODE    WelsMutexInit (WELS_MUTEX*    mutex);
--- a/codec/WelsThreadLib/src/WelsThreadLib.cpp
+++ b/codec/WelsThreadLib/src/WelsThreadLib.cpp
@@ -76,7 +76,7 @@
   WELS_EVENT   h = CreateEvent (NULL, FALSE, FALSE, NULL);
 
   if (h == NULL) {
-    return WELS_THREAD_ERROR_GENERIAL;
+    return WELS_THREAD_ERROR_GENERAL;
   }
   *event = h;
   return WELS_THREAD_ERROR_OK;
@@ -86,13 +86,13 @@
   if (SetEvent (*event)) {
     return WELS_THREAD_ERROR_OK;
   }
-  return WELS_THREAD_ERROR_GENERIAL;
+  return WELS_THREAD_ERROR_GENERAL;
 }
 
 WELS_THREAD_ERROR_CODE    WelsEventReset (WELS_EVENT* event) {
   if (ResetEvent (*event))
     return WELS_THREAD_ERROR_OK;
-  return WELS_THREAD_ERROR_GENERIAL;
+  return WELS_THREAD_ERROR_GENERAL;
 }
 
 WELS_THREAD_ERROR_CODE    WelsEventWait (WELS_EVENT* event) {
@@ -126,7 +126,7 @@
   WELS_THREAD_HANDLE   h = CreateThread (NULL, 0, routine, arg, 0, NULL);
 
   if (h == NULL) {
-    return WELS_THREAD_ERROR_GENERIAL;
+    return WELS_THREAD_ERROR_GENERAL;
   }
   * thread = h;
 
@@ -297,12 +297,12 @@
 
 WELS_THREAD_ERROR_CODE    WelsEventOpen (WELS_EVENT** p_event, str_t* event_name) {
   if (p_event == NULL || event_name == NULL)
-    return WELS_THREAD_ERROR_GENERIAL;
+    return WELS_THREAD_ERROR_GENERAL;
   *p_event = sem_open (event_name, O_CREAT, (S_IRUSR | S_IWUSR)/*0600*/, 0);
   if (*p_event == (sem_t*)SEM_FAILED) {
     sem_unlink (event_name);
     *p_event = NULL;
-    return WELS_THREAD_ERROR_GENERIAL;
+    return WELS_THREAD_ERROR_GENERAL;
   } else {
     return WELS_THREAD_ERROR_OK;
   }
--- a/codec/encoder/core/src/slice_multi_threading.cpp
+++ b/codec/encoder/core/src/slice_multi_threading.cpp
@@ -859,7 +859,7 @@
   SDqLayer* pCurDq							= NULL;
   int32_t iSliceIdx							= -1;
   int32_t iEventIdx							= -1;
-  WELS_THREAD_ERROR_CODE iWaitRet				= WELS_THREAD_ERROR_GENERIAL;
+  WELS_THREAD_ERROR_CODE iWaitRet				= WELS_THREAD_ERROR_GENERAL;
   uint32_t uiThrdRet							= 0;
 
   if (NULL == pPrivateData)
@@ -905,7 +905,7 @@
   WELS_EVENT pEventsList[3];
   int32_t iEventCount						= 0;
 #endif
-  WELS_THREAD_ERROR_CODE iWaitRet				= WELS_THREAD_ERROR_GENERIAL;
+  WELS_THREAD_ERROR_CODE iWaitRet				= WELS_THREAD_ERROR_GENERAL;
   uint32_t uiThrdRet							= 0;
   int32_t iSliceSize							= 0;
   int32_t iSliceIdx							= -1;
--- a/codec/processing/src/common/thread.h
+++ b/codec/processing/src/common/thread.h
@@ -74,10 +74,10 @@
 typedef long_t WELS_THREAD_ERROR_CODE;
 
 #define   WELS_THREAD_ERROR_OK					0
-#define   WELS_THREAD_ERROR_GENERIAL			((unsigned long)(-1))
+#define   WELS_THREAD_ERROR_GENERAL			((unsigned long)(-1))
 #define   WELS_THREAD_ERROR_WAIT_OBJECT_0		0
 #define	  WELS_THREAD_ERROR_WAIT_TIMEOUT		((unsigned long)0x00000102L)
-#define	  WELS_THREAD_ERROR_WAIT_FAILED		    WELS_THREAD_ERROR_GENERIAL
+#define	  WELS_THREAD_ERROR_WAIT_FAILED		    WELS_THREAD_ERROR_GENERAL
 
 WELS_THREAD_ERROR_CODE   WelsMutexInit (WELS_MUTEX*    mutex);
 WELS_THREAD_ERROR_CODE   WelsMutexLock (WELS_MUTEX*    mutex);