From d49efabb93517bebc72bbad7c17ccbee0ca7fd66 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sun, 23 Jun 2013 18:27:41 -0400 Subject: [PATCH] urisource: Do not let user reset the URI property This is not supported right now and would lead to unexpected behaviours --- ges/ges-uri-source.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ges/ges-uri-source.c b/ges/ges-uri-source.c index 000e8ac..94fd8fb 100644 --- a/ges/ges-uri-source.c +++ b/ges/ges-uri-source.c @@ -339,8 +339,10 @@ ges_track_filesource_set_property (GObject * object, guint property_id, switch (property_id) { case PROP_URI: - if (uriclip->uri) - g_free (uriclip->uri); + if (uriclip->uri) { + GST_WARNING_OBJECT (object, "Uri already set to %s", uriclip->uri); + return; + } uriclip->uri = g_value_dup_string (value); break; default: -- 2.7.4