"[%s] metadata_extractor_get_metadata failed.", GetErrorMessage(r));
}
- if (*(pAudio.get()) > 0 && *(pVideo.get()) == 0)
+ if (*(pAudio.get()) > '0' && *(pVideo.get()) == '0')
{
SysLog(NID_CNT, "The result of CheckStream() is audio");
return CONTENT_TYPE_AUDIO;
}
- else if (*(pAudio.get()) == 0 && *(pVideo.get()) > 0)
+ else if (*(pAudio.get()) == '0' && *(pVideo.get()) > '0')
{
SysLog(NID_CNT, "The result of CheckStream() is video");
return CONTENT_TYPE_VIDEO;
}
- else if (*(pAudio.get()) > 0 && *(pVideo.get()) > 0)
+ else if (*(pAudio.get()) > '0' && *(pVideo.get()) > '0')
{
SysLog(NID_CNT, "The result of CheckStream() is video");
return CONTENT_TYPE_VIDEO;
media_playlist_h tempHandle = null;
ret = media_playlist_insert_to_db(pInputCond.get(), &tempHandle);
r = MapCoreErrorToNativeResult(ret);
+ SysTryReturnResult(NID_CNT, !IsFailed(r), r, "Failed to perform media_playlist_insert_to_db operation.");
std::unique_ptr<media_playlist_s, PlayListHandleDeleter> pPlaylistHandle(tempHandle);
SysTryReturnResult(NID_CNT, pPlaylistHandle != null, E_OUT_OF_MEMORY, "pPlaylistHandle is null.");
r = E_SUCCESS;
break;
+ case MEDIA_CONTENT_ERROR_OUT_OF_MEMORY:
+ r = E_OUT_OF_MEMORY;
+ SysLog(NID_CNT, "MEDIA_CONTENT_ERROR_OUT_OF_MEMORY");
+ break;
+
case MEDIA_CONTENT_ERROR_INVALID_PARAMETER:
r = E_INVALID_ARG;
SysLog(NID_CNT, "MEDIA_CONTENT_ERROR_INVALID_PARAMETER");
r = E_SUCCESS;
break;
+ case MEDIA_CONTENT_ERROR_OUT_OF_MEMORY:
+ r = E_OUT_OF_MEMORY;
+ SysLog(NID_CNT, "MEDIA_CONTENT_ERROR_OUT_OF_MEMORY");
+ break;
+
case MEDIA_CONTENT_ERROR_DB_FAILED:
r = E_DATABASE;
SysLog(NID_CNT, "MEDIA_CONTENT_ERROR_DB_FAILED");
r = E_SUCCESS;
break;
+ case MEDIA_CONTENT_ERROR_OUT_OF_MEMORY:
+ r = E_OUT_OF_MEMORY;
+ SysLog(NID_CNT, "MEDIA_CONTENT_ERROR_OUT_OF_MEMORY");
+ break;
+
case MEDIA_CONTENT_ERROR_INVALID_PARAMETER:
r = E_INVALID_ARG;
SysLog(NID_CNT, "MEDIA_CONTENT_ERROR_INVALID_PARAMETER");
r = E_SUCCESS;
break;
+ case MEDIA_CONTENT_ERROR_OUT_OF_MEMORY:
+ r = E_OUT_OF_MEMORY;
+ SysLog(NID_CNT, "MEDIA_CONTENT_ERROR_OUT_OF_MEMORY");
+ break;
+
case MEDIA_CONTENT_ERROR_DB_FAILED:
r = E_DATABASE;
SysLog(NID_CNT, "MEDIA_CONTENT_ERROR_DB_FAILED");