mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
urisource: Do not let user reset the URI property
This is not supported right now and would lead to unexpected behaviours
This commit is contained in:
parent
9e0632e353
commit
d49efabb93
1 changed files with 4 additions and 2 deletions
|
@ -339,8 +339,10 @@ ges_track_filesource_set_property (GObject * object, guint property_id,
|
||||||
|
|
||||||
switch (property_id) {
|
switch (property_id) {
|
||||||
case PROP_URI:
|
case PROP_URI:
|
||||||
if (uriclip->uri)
|
if (uriclip->uri) {
|
||||||
g_free (uriclip->uri);
|
GST_WARNING_OBJECT (object, "Uri already set to %s", uriclip->uri);
|
||||||
|
return;
|
||||||
|
}
|
||||||
uriclip->uri = g_value_dup_string (value);
|
uriclip->uri = g_value_dup_string (value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue