encoding-target: set names on audio and video profiles
authorJonathan Matthew <jonathan@d14n.org>
Sat, 11 Jun 2011 09:03:57 +0000 (19:03 +1000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 26 Jun 2011 13:41:21 +0000 (15:41 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=652342

gst-libs/gst/pbutils/encoding-target.c

index 29e67d0..f3002b7 100644 (file)
@@ -642,10 +642,14 @@ parse_encoding_profile (GKeyFile * in, gchar * parentprofilename,
             *) sprof, variableframerate);
     gst_encoding_video_profile_set_pass ((GstEncodingVideoProfile *) sprof,
         pass);
+    gst_encoding_profile_set_name (sprof, pname);
+    gst_encoding_profile_set_description (sprof, description);
   } else if (!g_strcmp0 (proftype, "audio")) {
     sprof =
         (GstEncodingProfile *) gst_encoding_audio_profile_new (formatcaps,
         preset, restrictioncaps, presence);
+    gst_encoding_profile_set_name (sprof, pname);
+    gst_encoding_profile_set_description (sprof, description);
   } else
     GST_ERROR ("Unknown profile format '%s'", proftype);