fix segfault on generic hardware

Origin commit data
------------------
Branch: master
Commit: d9daa862ea
Author: TangoCash <eric@loxat.de>
Date: 2021-10-21 (Thu, 21 Oct 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2021-10-21 16:44:50 +02:00
committed by vanhofen
parent f813605d6b
commit 078c4a3954

View File

@@ -435,6 +435,8 @@ cPlayback::cPlayback(int num)
const gchar *nano_str;
guint major, minor, micro, nano;
if (!gst_init_check(NULL, NULL, NULL))
gst_deinit();
gst_init(NULL, NULL);
gst_version(&major, &minor, &micro, &nano);
@@ -471,6 +473,7 @@ cPlayback::~cPlayback()
if (m_stream_tags)
gst_tag_list_unref(m_stream_tags);
pthread_mutex_unlock(&mutex_tag_ist);
gst_deinit();
}
//Used by Fileplay