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

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


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

--- Comment #4 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to hermann.fuerntratt from comment #3)
> 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.

I'm not sure I understand. You can't call any GStreamer function after
gst_deinit(), including gst_init() or gst_init_check().

But to split things into separate threads that's also not required. You can
call gst_init() as many times as you want (it would do nothing for anything but
the first call). So each of your threads could call that in the very beginning
unless you want to simply place it at the top of your main().

Your problem is that gst_is_initialized() still returns TRUE after
gst_deinit(), but what exactly are you doing based on that?


For the patch, please provide it as a 'git format-patch' formatted patch (with
a commit message and correct author information), see
https://gstreamer.freedesktop.org/documentation/contribute/index.html#how-to-submit-patches

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