}
/* Must be called with appropriate lock if list is a protected variable */
-static gboolean
+static const gchar *
stream_in_list (GList * list, const gchar * sid)
{
GList *tmp;
#endif
for (tmp = list; tmp; tmp = tmp->next) {
- gchar *osid = (gchar *) tmp->data;
+ const gchar *osid = (gchar *) tmp->data;
if (!g_strcmp0 (sid, osid))
- return TRUE;
+ return osid;
}
- return FALSE;
+ return NULL;
}
static void
return input;
}
-static gboolean
+static const gchar *
stream_in_collection (GstDecodebin3 * dbin, gchar * sid)
{
guint i, len;
if (dbin->collection == NULL)
- return FALSE;
+ return NULL;
len = gst_stream_collection_get_size (dbin->collection);
for (i = 0; i < len; i++) {
GstStream *stream = gst_stream_collection_get_stream (dbin->collection, i);
const gchar *osid = gst_stream_get_stream_id (stream);
if (!g_strcmp0 (sid, osid))
- return TRUE;
+ return osid;
}
- return FALSE;
+ return NULL;
}
/* Call with INPUT_LOCK taken */