[Bug 794956] gst_initialized is not reset in gst_deinit()

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 4 07:16:13 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=794956

--- Comment #3 from hermann.fuerntratt at joanneum.at ---
Currently I try to keep things simple and put gst related code in a separate
C++ thread. At the very end, I would like to recreate the trhead with a
different pipeline. That would require gst_init_check() to be called only once
outside the thread, which means to rip the gst related code appart into one
part (calling gst_init_check()) and the rest of it (with additional argc argv
handling of the new pipeline arguments) inside the thread, which is not good,
especially if the following patch could fix the problem.


gst/gst.c
@@ -1228,6 +1228,7 @@ gst_deinit (void)
   g_type_class_unref (g_type_class_peek (gst_promise_result_get_type ()));

   gst_deinitialized = TRUE;
+  gst_initialized = FALSE;
   GST_INFO ("deinitialized GStreamer");
 }

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list