mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-28 07:50:58 +02:00
Merge remote-tracking branch 'tangocash/master'
Origin commit data
------------------
Branch: master
Commit: ae875c993d
Author: max_10 <max_10@gmx.de>
Date: 2017-11-11 (Sat, 11 Nov 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1037,7 +1037,8 @@ void cCA::setInputs()
|
|||||||
if (fd)
|
if (fd)
|
||||||
{
|
{
|
||||||
printf("set input%d to tuner %s\n", number, getTunerLetter(number).c_str());
|
printf("set input%d to tuner %s\n", number, getTunerLetter(number).c_str());
|
||||||
fprintf(fd, getTunerLetter(number).c_str());
|
fprintf(fd,"%s", getTunerLetter(number).c_str());
|
||||||
|
fclose(fd);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -325,7 +325,7 @@ GstBusSyncReply Gst_bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
|
|||||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||||
{
|
{
|
||||||
GstIterator *children;
|
GstIterator *children;
|
||||||
GValue r = { 0, };
|
GValue r = G_VALUE_INIT;
|
||||||
|
|
||||||
if (audioSink)
|
if (audioSink)
|
||||||
{
|
{
|
||||||
@@ -339,8 +339,7 @@ GstBusSyncReply Gst_bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
|
|||||||
videoSink = NULL;
|
videoSink = NULL;
|
||||||
}
|
}
|
||||||
children = gst_bin_iterate_recurse(GST_BIN(m_gst_playbin));
|
children = gst_bin_iterate_recurse(GST_BIN(m_gst_playbin));
|
||||||
|
if (children && gst_iterator_find_custom(children, (GCompareFunc)match_sinktype, &r, (gpointer)"GstDVBAudioSink"))
|
||||||
if (gst_iterator_find_custom(children, (GCompareFunc)match_sinktype, &r, (gpointer)"GstDVBAudioSink"))
|
|
||||||
{
|
{
|
||||||
audioSink = GST_ELEMENT_CAST(g_value_dup_object (&r));
|
audioSink = GST_ELEMENT_CAST(g_value_dup_object (&r));
|
||||||
g_value_unset (&r);
|
g_value_unset (&r);
|
||||||
@@ -349,8 +348,7 @@ GstBusSyncReply Gst_bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
|
|||||||
|
|
||||||
gst_iterator_free(children);
|
gst_iterator_free(children);
|
||||||
children = gst_bin_iterate_recurse(GST_BIN(m_gst_playbin));
|
children = gst_bin_iterate_recurse(GST_BIN(m_gst_playbin));
|
||||||
|
if (children && gst_iterator_find_custom(children, (GCompareFunc)match_sinktype, &r, (gpointer)"GstDVBVideoSink"))
|
||||||
if (gst_iterator_find_custom(children, (GCompareFunc)match_sinktype, &r, (gpointer)"GstDVBVideoSink"))
|
|
||||||
{
|
{
|
||||||
videoSink = GST_ELEMENT_CAST(g_value_dup_object (&r));
|
videoSink = GST_ELEMENT_CAST(g_value_dup_object (&r));
|
||||||
g_value_unset (&r);
|
g_value_unset (&r);
|
||||||
@@ -390,6 +388,8 @@ GstBusSyncReply Gst_bus_call(GstBus *bus, GstMessage *msg, gpointer user_data)
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if(sourceName)
|
||||||
|
g_free(sourceName);
|
||||||
|
|
||||||
return GST_BUS_DROP;
|
return GST_BUS_DROP;
|
||||||
}
|
}
|
||||||
@@ -1017,7 +1017,9 @@ void cPlayback::GetMetadata(std::vector<std::string> &keys, std::vector<std::str
|
|||||||
keys.clear();
|
keys.clear();
|
||||||
values.clear();
|
values.clear();
|
||||||
|
|
||||||
GstTagList *meta_list = gst_tag_list_copy(m_stream_tags);
|
GstTagList *meta_list = NULL;
|
||||||
|
if(m_stream_tags)
|
||||||
|
meta_list = gst_tag_list_copy(m_stream_tags);
|
||||||
|
|
||||||
if (meta_list == NULL)
|
if (meta_list == NULL)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user