mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
ffenc: Make the buffer-size property read-only
...instead of just doing nothing when setting it. This makes sure that people notice that they shouldn't set the property because it creates a warning now.
This commit is contained in:
parent
06757cfebc
commit
98439aacc7
1 changed files with 1 additions and 3 deletions
|
@ -189,7 +189,7 @@ gst_ffmpegenc_class_init (GstFFMpegEncClass * klass)
|
|||
GST_TYPE_ME_METHOD, ME_EPZS, G_PARAM_READWRITE));
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BUFSIZE,
|
||||
g_param_spec_ulong ("buffer-size", "Buffer Size",
|
||||
"Size of the video buffers", 0, G_MAXULONG, 0, G_PARAM_READWRITE));
|
||||
"Size of the video buffers", 0, G_MAXULONG, 0, G_PARAM_READABLE));
|
||||
g_object_class_install_property (G_OBJECT_CLASS (klass),
|
||||
ARG_RTP_PAYLOAD_SIZE, g_param_spec_ulong ("rtp-payload-size",
|
||||
"RTP Payload Size", "Target GOB length", 0, G_MAXULONG, 0,
|
||||
|
@ -1050,8 +1050,6 @@ gst_ffmpegenc_set_property (GObject * object,
|
|||
case ARG_ME_METHOD:
|
||||
ffmpegenc->me_method = g_value_get_enum (value);
|
||||
break;
|
||||
case ARG_BUFSIZE:
|
||||
break;
|
||||
case ARG_RTP_PAYLOAD_SIZE:
|
||||
ffmpegenc->rtp_payload_size = g_value_get_ulong (value);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue