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);