theoraenc: warn when trying to set an ignored obsolete property

https://bugzilla.gnome.org/show_bug.cgi?id=663391
This commit is contained in:
Vincent Penquerc'h 2011-11-04 10:59:12 +00:00
parent 10811d63f9
commit 0c4ccb4f9c

View file

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