return MEDIAEDITOR_ERROR_NONE;
}
+//LCOV_EXCL_START
static int __set_wl_sink(mediaeditor_s *_editor)
{
GstElement *videosink = NULL;
return MEDIAEDITOR_ERROR_NONE;
}
+//LCOV_EXCL_STOP
static int __init_display(mediaeditor_display_s **display)
{
int ret = MEDIAEDITOR_ERROR_NONE;
g_autoptr(GMutexLocker) locker = NULL;
mediaeditor_s *_editor = (mediaeditor_s*)editor;
- mediaeditor_display_s *_display = _editor->display;
+ mediaeditor_display_s *_display = NULL;
RET_VAL_IF(_editor == NULL, MEDIAEDITOR_ERROR_INVALID_PARAMETER, "editor is NULL");
- if (_display == NULL) {
- if ((ret = __init_display(&_display)) != MEDIAEDITOR_ERROR_NONE) {
+ if (_editor->display == NULL) {
+ if ((ret = __init_display(&_editor->display)) != MEDIAEDITOR_ERROR_NONE) {
LOG_ERROR("failed to initialize display[0x%x]", ret);
return ret;
}
}
+ _display = _editor->display;
+
LOG_DEBUG("mutex[%p]", &_display->mutex);
locker = g_mutex_locker_new(&_display->mutex);
return;
}
- ret = mediaeditor_add_clip(heditor, "/tmp/test1.mp4", layer_priority, 0, G_TIME_SPAN_MILLISECOND * 10, 0, &clip_id);
+ ret = mediaeditor_add_clip(heditor, "/tmp/test1.mp4", layer_id, 0, G_TIME_SPAN_MILLISECOND * 3, 0, &clip_id);
if (ret != MEDIAEDITOR_ERROR_NONE) {
g_print("failed to add clip : error[0x%x]\n", ret);
return;
}
- ret = mediaeditor_set_display(heditor, MEDIAEDITOR_DISPLAY_TYPE_EVAS, GET_DISPLAY(ad.eo));
+ ret = mediaeditor_set_display(heditor, MEDIAEDITOR_DISPLAY_TYPE_OVERLAY, GET_DISPLAY(ad.win));
if (ret != MEDIAEDITOR_ERROR_NONE) {
g_print("failed to set display : error[0x%x]\n", ret);
return;
return;
}
- ret = mediaeditor_add_clip(heditor, "/tmp/test1.mp4", layer_priority, 0, 100, 0, &clip_id);
+ ret = mediaeditor_add_clip(heditor, "/tmp/test1.mp4", layer_id, 0, 100, 0, &clip_id);
if (ret != MEDIAEDITOR_ERROR_NONE) {
g_print("failed to add clip : error[0x%x]\n", ret);
return;