[Version] 0.1.5
[Profile] Common, Mobile, Wearable, TV
[Issue Type] Fix svace issue
Change-Id: I24becf636af8f84009fc4a13236c3cd96b6e970b
extern "C" {
#endif
-#define MEDIAMUXER_INI_DEFAULT_PATH "/usr/etc/mmfw_mediamuxer.ini"
+#define MEDIAMUXER_INI_DEFAULT_PATH SYSCONFDIR"/multimedia/mmfw_mediamuxer.ini"
#define MEDIAMUXER_INI_MAX_STRLEN 100
#define DEFAULT_PORT "GST_PORT"
%ifarch %{arm}
export CFLAGS="$CFLAGS -DENABLE_FFMPEG_CODEC"
%endif
+export CFLAGS="$CFLAGS -DSYSCONFDIR=\\\"%{_sysconfdir}\\\" "
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
#include <glib/gstdio.h>
#include <mm_debug.h>
#include <mm_error.h>
-#include "iniparser.h"
-#include <mediamuxer_ini.h>
-#include <mediamuxer_private.h>
-#include <mediamuxer_error.h>
+#include <iniparser.h>
+#include "mediamuxer_ini.h"
+#include "mediamuxer_private.h"
+#include "mediamuxer_error.h"
/* macro */
#define MEDIAMUXER_INI_GET_STRING(x_dict, x_item, x_ini, x_default) \
MEDIAMUXER_CHECK_NULL(pHandle);
mxgst_handle_t *gst_handle = (mxgst_handle_t *) pHandle;
- if (!gst_handle) {
- MX_E("fail invaild param\n");
- ret = MX_INVALID_ARGUMENT;
- goto ERROR;
- }
-
if (gst_handle->user_cb[_GST_EVENT_TYPE_ERROR]) {
MX_E("Already set mediamuxer_error_cb\n");
ret = MX_ERROR_INVALID_ARGUMENT;