GSource *source;
GMainContext *ctx = NULL;
+ g_return_if_fail (GST_IS_DISCOVERER (discoverer));
+
GST_DEBUG_OBJECT (discoverer, "Starting...");
if (discoverer->priv->async) {
void
gst_discoverer_stop (GstDiscoverer * discoverer)
{
+ g_return_if_fail (GST_IS_DISCOVERER (discoverer));
+
GST_DEBUG_OBJECT (discoverer, "Stopping...");
if (!discoverer->priv->async) {
{
gboolean can_run;
+ g_return_val_if_fail (GST_IS_DISCOVERER (discoverer), FALSE);
+
GST_DEBUG_OBJECT (discoverer, "uri : %s", uri);
DISCO_LOCK (discoverer);
GstDiscovererResult res = 0;
GstDiscovererInfo *info;
+ g_return_val_if_fail (GST_IS_DISCOVERER (discoverer), NULL);
+ g_return_val_if_fail (uri, NULL);
+
GST_DEBUG_OBJECT (discoverer, "uri:%s", uri);
DISCO_LOCK (discoverer);
GstDiscovererStreamInfo *sinfo = gst_discoverer_info_get_stream_info (info);
GVariant *wrapper;
+ g_return_val_if_fail (GST_IS_DISCOVERER_INFO (info), NULL);
+
stream_variant = gst_discoverer_info_to_variant_recurse (sinfo, flags);
variant =
g_variant_new ("(vv)", _serialize_info (info, flags), stream_variant);