WrsOMXPlugin - return OMX_ErrorInsufficientResources
when making component instance fail due to resource limitation.

Bug: 20165724
Change-Id: Ia1a56371e80c7f7ea24818e23ac3c7d7b6accf10
Signed-off-by: Yuanjun Huang <yuanjun.huang@intel.com>
diff --git a/WrsOMXPlugin.cpp b/WrsOMXPlugin.cpp
index ee76ffe..7bc2e4a 100644
--- a/WrsOMXPlugin.cpp
+++ b/WrsOMXPlugin.cpp
@@ -139,6 +139,8 @@
 
                 mComponents.push_back(comp);
                 return OMX_ErrorNone;
+            } else if(omx_res == OMX_ErrorInsufficientResources) {
+                return OMX_ErrorInsufficientResources;
             }
         }
     }