theoraenc: warn when trying to set an ignored obsolete property
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 4 Nov 2011 10:59:12 +0000 (10:59 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 7 Nov 2011 12:27:12 +0000 (12:27 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=663391

ext/theora/gsttheoraenc.c

index b7cd8ae..6f35ed6 100644 (file)
@@ -1500,6 +1500,8 @@ theora_enc_set_property (GObject * object, guint prop_id,
     case PROP_NOISE_SENSITIVITY:
     case PROP_SHARPNESS:
       /* kept for API compat, but ignored */
+      GST_WARNING_OBJECT (object, "Obsolete property '%s' ignored",
+          pspec->name);
       break;
     case PROP_BITRATE:
       GST_OBJECT_LOCK (enc);