mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
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:
@@ -435,6 +435,8 @@ cPlayback::cPlayback(int num)
|
|||||||
const gchar *nano_str;
|
const gchar *nano_str;
|
||||||
guint major, minor, micro, nano;
|
guint major, minor, micro, nano;
|
||||||
|
|
||||||
|
if (!gst_init_check(NULL, NULL, NULL))
|
||||||
|
gst_deinit();
|
||||||
gst_init(NULL, NULL);
|
gst_init(NULL, NULL);
|
||||||
|
|
||||||
gst_version(&major, &minor, µ, &nano);
|
gst_version(&major, &minor, µ, &nano);
|
||||||
@@ -471,6 +473,7 @@ cPlayback::~cPlayback()
|
|||||||
if (m_stream_tags)
|
if (m_stream_tags)
|
||||||
gst_tag_list_unref(m_stream_tags);
|
gst_tag_list_unref(m_stream_tags);
|
||||||
pthread_mutex_unlock(&mutex_tag_ist);
|
pthread_mutex_unlock(&mutex_tag_ist);
|
||||||
|
gst_deinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Used by Fileplay
|
//Used by Fileplay
|
||||||
|
Reference in New Issue
Block a user