{
std::unique_ptr<char[]> pInputCond;
String inputCondition = L"PLAYLIST_NAME = ";
- String nameExpr(playListName);
+ String nameExpr(L"");
filter_h tempFilter = NULL;
int ret = media_filter_create(&tempFilter);
std::unique_ptr<filter_s, FilterHandleDeleter> pFilterHandle(tempFilter);
SysTryReturnResult(NID_CNT, pFilterHandle != null, E_OUT_OF_MEMORY, "pFilterHandle is null.");
+ r = nameExpr.Append(playListName);
+ SysTryReturnResult(NID_CNT, r == E_SUCCESS, r, "Failed to perform Append operation for nameExpr.");
+
if (!nameExpr.IsEmpty())
{
r = nameExpr.Replace("\'", "''");
std::unique_ptr<char[]> pInputCond;
filter_h tempFilter = NULL;
String inputCondition = L"PLAYLIST_NAME = ";
- String nameExpr(playListName);
+ String nameExpr(L"");
int ret = media_filter_create(&tempFilter);
result r = MapCoreErrorToNativeResult(ret);
std::unique_ptr<filter_s, FilterDeleter> pFilterHandle(tempFilter);
SysTryReturnResult(NID_CNT, pFilterHandle != null, E_OUT_OF_MEMORY, "pFilterHandle is null.");
+ r = nameExpr.Append(playListName);
+ SysTryReturnResult(NID_CNT, r == E_SUCCESS, r, "Failed to perform Append operation for nameExpr.");
+
if (!nameExpr.IsEmpty())
{
- r = nameExpr.Replace("\'", "''");
+ r = nameExpr.Replace(L"\'", L"''");
SysTryReturnResult(NID_CNT, r == E_SUCCESS, r, "Failed to perform Replace operation for nameExpr.");
r = nameExpr.Insert('\'', 0);