ugly: use of g_value_dup_string

Use helper method to get string from GValue.
This commit is contained in:
Stéphane Cerveau 2019-12-18 16:09:42 +01:00
parent 0dd89a1dd2
commit a47b6b5f3c

View file

@ -1037,7 +1037,7 @@ gst_dvd_read_src_set_property (GObject * object, guint prop_id,
if (g_value_get_string (value) == NULL) {
src->location = g_strdup ("/dev/dvd");
} else {
src->location = g_strdup (g_value_get_string (value));
src->location = g_value_dup_string (value);
}
break;
}