mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
tests/examples/qmlsink: scope QApplication/Engine
So they are destroyed before gst_deinit() is run and the leaks tracer doesn't show false-positives. https://bugzilla.gnome.org/show_bug.cgi?id=775746
This commit is contained in:
parent
7400a57043
commit
de41d74e6f
1 changed files with 27 additions and 24 deletions
|
@ -39,9 +39,11 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
QGuiApplication app(argc, argv);
|
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
|
|
||||||
|
{
|
||||||
|
QGuiApplication app(argc, argv);
|
||||||
|
|
||||||
GstElement *pipeline = gst_pipeline_new (NULL);
|
GstElement *pipeline = gst_pipeline_new (NULL);
|
||||||
GstElement *src = gst_element_factory_make ("videotestsrc", NULL);
|
GstElement *src = gst_element_factory_make ("videotestsrc", NULL);
|
||||||
GstElement *glupload = gst_element_factory_make ("glupload", NULL);
|
GstElement *glupload = gst_element_factory_make ("glupload", NULL);
|
||||||
|
@ -73,6 +75,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
gst_object_unref (pipeline);
|
gst_object_unref (pipeline);
|
||||||
|
}
|
||||||
|
|
||||||
gst_deinit ();
|
gst_deinit ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue