diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2019-12-18 16:09:42 +0100 |
---|---|---|
committer | Stéphane Cerveau <scerveau@collabora.com> | 2019-12-18 16:09:42 +0100 |
commit | a47b6b5f3c215e05f93617085db03b5a4a9ac72f (patch) | |
tree | 0a80f4beb0c916c207e112f72fa21a89baacdad9 | |
parent | 0dd89a1dd2cb3a8212e16a1bd007fb992bf601a3 (diff) |
ugly: use of g_value_dup_string
Use helper method to get string from GValue.
-rw-r--r-- | ext/dvdread/dvdreadsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dvdread/dvdreadsrc.c b/ext/dvdread/dvdreadsrc.c index 4a8b38f5..e58530fe 100644 --- a/ext/dvdread/dvdreadsrc.c +++ b/ext/dvdread/dvdreadsrc.c @@ -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; } |