From 5e824ef5aff500dab6caa315c7ec6b3986efdff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 25 Jun 2012 10:32:36 +0200 Subject: [PATCH] gestimelinepipeline: Fix for gst_element_make_from_uri() API changes --- ges/ges-timeline-pipeline.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ges/ges-timeline-pipeline.c b/ges/ges-timeline-pipeline.c index 2861ff0a54..87627532c2 100644 --- a/ges/ges-timeline-pipeline.c +++ b/ges/ges-timeline-pipeline.c @@ -684,6 +684,8 @@ gboolean ges_timeline_pipeline_set_render_settings (GESTimelinePipeline * pipeline, gchar * output_uri, GstEncodingProfile * profile) { + GError *err = NULL; + /* Clear previous URI sink if it existed */ /* FIXME : We should figure out if it was added to the pipeline, * and if so, remove it. */ @@ -693,10 +695,12 @@ ges_timeline_pipeline_set_render_settings (GESTimelinePipeline * pipeline, } pipeline->priv->urisink = - gst_element_make_from_uri (GST_URI_SINK, output_uri, "urisink"); + gst_element_make_from_uri (GST_URI_SINK, output_uri, "urisink", &err); if (G_UNLIKELY (pipeline->priv->urisink == NULL)) { - GST_ERROR_OBJECT (pipeline, "Couldn't not create sink for URI %s", - output_uri); + GST_ERROR_OBJECT (pipeline, "Couldn't not create sink for URI %s: '%s'", + output_uri, ((err + && err->message) ? err->message : "failed to create element")); + g_clear_error (&err); return FALSE; }