mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
small fix for gstreamer 1.0 playback
Origin commit data
------------------
Branch: master
Commit: a1f7fb9217
Author: TangoCash <eric@loxat.de>
Date: 2017-05-31 (Wed, 31 May 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -72,10 +72,12 @@ static int end_eof = 0;
|
|||||||
|
|
||||||
extern GLFramebuffer *glfb;
|
extern GLFramebuffer *glfb;
|
||||||
|
|
||||||
gint match_sinktype(GstElement *element, gpointer type)
|
gint match_sinktype(const GValue *velement, const gchar *type)
|
||||||
{
|
{
|
||||||
return strcmp(g_type_name(G_OBJECT_TYPE(element)), (const char*)type);
|
GstElement *element = GST_ELEMENT_CAST(g_value_get_object(velement));
|
||||||
|
return strcmp(g_type_name(G_OBJECT_TYPE(element)), type);
|
||||||
}
|
}
|
||||||
|
|
||||||
GstBusSyncReply Gst_bus_call(GstBus * bus, GstMessage *msg, gpointer user_data)
|
GstBusSyncReply Gst_bus_call(GstBus * bus, GstMessage *msg, gpointer user_data)
|
||||||
{
|
{
|
||||||
gchar * sourceName;
|
gchar * sourceName;
|
||||||
@@ -207,9 +209,13 @@ 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));
|
||||||
GValue *elem;
|
GValue r = G_VALUE_INIT;
|
||||||
audioSink = GST_ELEMENT_CAST(gst_iterator_find_custom(children, (GCompareFunc)match_sinktype, elem, (gpointer)"GstDVBAudioSink"));
|
gst_iterator_find_custom(children, (GCompareFunc)match_sinktype, &r, (gpointer)"GstDVBAudioSink");
|
||||||
videoSink = GST_ELEMENT_CAST(gst_iterator_find_custom(children, (GCompareFunc)match_sinktype, elem, (gpointer)"GstDVBVideoSink"));
|
audioSink = GST_ELEMENT_CAST(g_value_dup_object (&r));
|
||||||
|
g_value_unset (&r);
|
||||||
|
gst_iterator_find_custom(children, (GCompareFunc)match_sinktype, &r, (gpointer)"GstDVBVideoSink");
|
||||||
|
videoSink = GST_ELEMENT_CAST(g_value_dup_object (&r));
|
||||||
|
g_value_unset (&r);
|
||||||
gst_iterator_free(children);
|
gst_iterator_free(children);
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
|
Reference in New Issue
Block a user