'Why gst_deinit freeze application?

OS: Windows 10

Gstreamer: 1.16.2

Qt: 5.14.0

I have application in QT, which use gstreamer. Now I would like to many times init and deinit gstreamer using: gst_init(NULL, NULL) and gst_deinit().

When I use gst_deinit() in my code, the application is freezed. When I debuq informations like this:

qInfo()<<"before";
gst_deinit();
qInfo()<<"after";

I see only "before" text.

What should I do to deinit gstreamer and don't freeze application?

EDIT should I use unref's functions?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source