From 8fdbdb490b74881ab798235d1daeea48f52a367f Mon Sep 17 00:00:00 2001 From: hj kim Date: Mon, 27 Apr 2020 11:52:13 +0900 Subject: [PATCH] Improve _gstcs_create_default_thread() API Change-Id: I280cd9aff99ed663469e89501814e1c921593df7 --- gstcs/mm_util_gstcs.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gstcs/mm_util_gstcs.c b/gstcs/mm_util_gstcs.c index e168c8d..a1cecf0 100644 --- a/gstcs/mm_util_gstcs.c +++ b/gstcs/mm_util_gstcs.c @@ -594,14 +594,8 @@ static int _gstcs_create_default_thread(gstreamer_s *gstreamer) gstcs_retvm_if(gstreamer == NULL, GSTCS_ERROR_INVALID_PARAMETER, "Invalid gstreamer"); gstreamer->context = g_main_context_new(); - gstcs_retvm_if(gstreamer->context == NULL, GSTCS_ERROR_INVALID_OPERATION, "ERROR - g_main_context_new"); gstreamer->loop = g_main_loop_new(gstreamer->context, FALSE); - if (gstreamer->loop == NULL) { - gstcs_error("ERROR - g_main_loop_new "); - g_main_context_unref(gstreamer->context); - return GSTCS_ERROR_INVALID_OPERATION; - } g_main_context_push_thread_default(gstreamer->context); -- 2.7.4