From: Tim-Philipp Müller Date: Mon, 15 Mar 2010 13:10:23 +0000 (+0000) Subject: videotestsrc: use g_value_set_static_string() for string constants X-Git-Tag: RELEASE-0.10.29~121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ff8195108de743efdb582a06390ebf71eea155d;p=platform%2Fupstream%2Fgst-plugins-base.git videotestsrc: use g_value_set_static_string() for string constants --- diff --git a/gst/videotestsrc/videotestsrc.c b/gst/videotestsrc/videotestsrc.c index f912363..d21325b 100644 --- a/gst/videotestsrc/videotestsrc.c +++ b/gst/videotestsrc/videotestsrc.c @@ -682,19 +682,19 @@ paint_get_structure (struct fourcc_list_struct * format) g_value_init (&value_list, GST_TYPE_LIST); g_value_init (&value, G_TYPE_STRING); - g_value_set_string (&value, "sdtv"); + g_value_set_static_string (&value, "sdtv"); gst_value_list_append_value (&value_list, &value); - g_value_set_string (&value, "hdtv"); + g_value_set_static_string (&value, "hdtv"); gst_value_list_append_value (&value_list, &value); gst_structure_set_value (structure, "color-matrix", &value_list); g_value_reset (&value_list); - g_value_set_string (&value, "mpeg2"); + g_value_set_static_string (&value, "mpeg2"); gst_value_list_append_value (&value_list, &value); - g_value_set_string (&value, "jpeg"); + g_value_set_static_string (&value, "jpeg"); gst_value_list_append_value (&value_list, &value); gst_structure_set_value (structure, "chroma-site", &value_list);