From: Bastien Nocera Date: Wed, 6 Apr 2011 15:27:54 +0000 (+0100) Subject: encoding-profile: fix unused-but-set-variable warnings with gcc 4.6 X-Git-Tag: 1.19.3~511^2~6555^2~992 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fa0119dc13f8861f68f8b7b108ce137e3508d53;p=platform%2Fupstream%2Fgstreamer.git encoding-profile: fix unused-but-set-variable warnings with gcc 4.6 Top-level profiles don't have restrictions, only stream profiles, so no need to serialise that here. https://bugzilla.gnome.org/show_bug.cgi?id=646925 --- diff --git a/gst-libs/gst/pbutils/encoding-target.c b/gst-libs/gst/pbutils/encoding-target.c index b7e7ad5..29e67d0 100644 --- a/gst-libs/gst/pbutils/encoding-target.c +++ b/gst-libs/gst/pbutils/encoding-target.c @@ -448,21 +448,19 @@ serialize_encoding_profile (GKeyFile * out, GstEncodingProfile * prof) const GList *tmp; guint i; const gchar *profname, *profdesc, *profpreset, *proftype; - const GstCaps *profformat, *profrestriction; + const GstCaps *profformat; profname = gst_encoding_profile_get_name (prof); profdesc = gst_encoding_profile_get_description (prof); profformat = gst_encoding_profile_get_format (prof); profpreset = gst_encoding_profile_get_preset (prof); proftype = gst_encoding_profile_get_type_nick (prof); - profrestriction = gst_encoding_profile_get_restriction (prof); profgroupname = g_strdup_printf ("profile-%s", profname); g_key_file_set_string (out, profgroupname, "name", profname); - g_key_file_set_value (out, profgroupname, "type", - gst_encoding_profile_get_type_nick (prof)); + g_key_file_set_value (out, profgroupname, "type", proftype); if (profdesc) { gchar *locale; @@ -1001,7 +999,6 @@ gst_encoding_target_save (GstEncodingTarget * target, GError ** error) { gchar *filename; gchar *lfilename; - gboolean res; g_return_val_if_fail (GST_IS_ENCODING_TARGET (target), FALSE); g_return_val_if_fail (target->category != NULL, FALSE); @@ -1012,7 +1009,7 @@ gst_encoding_target_save (GstEncodingTarget * target, GError ** error) GST_ENCODING_TARGET_DIRECTORY, target->category, lfilename, NULL); g_free (lfilename); - res = gst_encoding_target_save_to_file (target, filename, error); + gst_encoding_target_save_to_file (target, filename, error); g_free (filename); return TRUE;