[gst-cvs] gst-ffmpeg: Revert "ffenc: Make the buffer-size property read-only"

Sebastian Dröge slomo at kemper.freedesktop.org
Thu Oct 8 04:55:12 PDT 2009


Module: gst-ffmpeg
Branch: master
Commit: 087582d7cd88e4644d22b41c57939e741ee18837
URL:    http://cgit.freedesktop.org/gstreamer/gst-ffmpeg/commit/?id=087582d7cd88e4644d22b41c57939e741ee18837

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Thu Oct  8 13:52:22 2009 +0200

Revert "ffenc: Make the buffer-size property read-only"

This reverts commit 98439aacc752432022b6fc3e5bc487d60b12dc48.

Instead of printing a warning when trying to set the property
it should do nothing as before and the property description
should contain a note that setting it has no effect.

---

 ext/ffmpeg/gstffmpegenc.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c
index fe897b8..aa26b40 100644
--- a/ext/ffmpeg/gstffmpegenc.c
+++ b/ext/ffmpeg/gstffmpegenc.c
@@ -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_READABLE));
+            "Size of the video buffers", 0, G_MAXULONG, 0, G_PARAM_READWRITE));
     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,6 +1050,8 @@ 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;





More information about the Gstreamer-commits mailing list