From 398dd27e7f3181fff9e3d910b418c69f1493f52f Mon Sep 17 00:00:00 2001 From: Sunita Nadampalli Date: Tue, 7 Feb 2017 14:19:55 -0600 Subject: libdce: Increase the concurrent engine handle count Increase the MAX_INSTANCES count for the concurrent engine handles to match the DCE server definitions. Change-Id: If29de276b9a173e114ad6df9b1358b4842e86b49 Signed-off-by: Sunita Nadampalli --- dce_rpc.h | 2 +- libdce.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dce_rpc.h b/dce_rpc.h index cba0d3f..4bd45e6 100644 --- a/dce_rpc.h +++ b/dce_rpc.h @@ -49,7 +49,7 @@ #define MAX_OUTPUT_BUFPTRS 2//To take care bufs and bufSizes in viddec2 case #define MAX_TOTAL_BUF (MAX_INPUT_BUF + MAX_OUTPUT_BUF + MAX_OUTPUT_BUFPTRS) -#define MAX_INSTANCES 4 +#define MAX_INSTANCES 6 // aligned with IPUMM definitions for MAX instances i.e.,5, + 1 for persistent system /* Message-Ids: */ //#define DCE_RPC_CONNECT (0x80000000 | 00) Connect not needed anymore. diff --git a/libdce.c b/libdce.c index 583b4d7..bd7fb17 100644 --- a/libdce.c +++ b/libdce.c @@ -1032,7 +1032,7 @@ VIDDEC3_Handle VIDDEC3_create(Engine_Handle engine, String name, id = get_callback(0); if (id < 0) { - /* This is depended on the MAX_INSTANCE, by default it handles only 4 instances of codec instance (full frame or low latency) */ + /* This is depended on the MAX_INSTANCE, by default it handles only 5 instances of codec instance (full frame or low latency) */ ERROR("Failed because too many codec clients, Max is %d. MAX_INSTANCES default needs to be changed if required.", MAX_INSTANCES); goto EXIT; } else { /* Found empty array to be populated */ @@ -1254,7 +1254,7 @@ VIDENC2_Handle VIDENC2_create(Engine_Handle engine, String name, id = get_callback(0); if( id < 0 ) { - /* This is depended on the MAX_INSTANCE, by default it handles only 4 instances of codec instance (full frame or low latency) */ + /* This is depended on the MAX_INSTANCE, by default it handles only 5 instances of codec instance (full frame or low latency) */ ERROR("Failed because too many codec clients, Max is %d. MAX_INSTANCES default needs to be changed if required.", MAX_INSTANCES); goto EXIT; } else { /* Found empty array to be populated */ -- cgit v1.2.3