Improve _gstcs_create_default_thread() API 39/231939/3
authorhj kim <backto.kim@samsung.com>
Mon, 27 Apr 2020 02:52:13 +0000 (11:52 +0900)
committerhj kim <backto.kim@samsung.com>
Tue, 28 Apr 2020 04:06:00 +0000 (04:06 +0000)
Change-Id: I280cd9aff99ed663469e89501814e1c921593df7

gstcs/mm_util_gstcs.c

index e168c8d..a1cecf0 100644 (file)
@@ -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);