From: Sebastian Dröge Date: Mon, 25 Jun 2012 08:32:36 +0000 (+0200) Subject: gestimelinepipeline: Fix for gst_element_make_from_uri() API changes X-Git-Tag: 1.19.3~493^2~2183 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e824ef5aff500dab6caa315c7ec6b3986efdff8;p=platform%2Fupstream%2Fgstreamer.git gestimelinepipeline: Fix for gst_element_make_from_uri() API changes --- 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; }