[gst-cvs] gst-plugins-base: videotestsrc: deprecate colorspec property

David Schleef ds at kemper.freedesktop.org
Sun Sep 5 17:06:02 PDT 2010


Module: gst-plugins-base
Branch: master
Commit: fc3840ee73034c00f40bd4394ed21dd38e714593
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=fc3840ee73034c00f40bd4394ed21dd38e714593

Author: David Schleef <ds at schleef.org>
Date:   Sun Sep  5 17:04:31 2010 -0700

videotestsrc: deprecate colorspec property

Fixes: #616392.

---

 gst/videotestsrc/gstvideotestsrc.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c
index a1e86c0..b88edea 100644
--- a/gst/videotestsrc/gstvideotestsrc.c
+++ b/gst/videotestsrc/gstvideotestsrc.c
@@ -203,7 +203,9 @@ gst_video_test_src_class_init (GstVideoTestSrcClass * klass)
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (gobject_class, PROP_COLOR_SPEC,
       g_param_spec_enum ("colorspec", "Color Specification",
-          "Generate video in the given color specification",
+          "Generate video in the given color specification (Deprecated: "
+          "use a caps filter with video/x-raw-yuv,color-matrix=\"sdtv\" or "
+          "\"hdtv\" instead)",
           GST_TYPE_VIDEO_TEST_SRC_COLOR_SPEC,
           DEFAULT_COLOR_SPEC, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   g_object_class_install_property (gobject_class, PROP_K0,
@@ -415,7 +417,6 @@ gst_video_test_src_set_property (GObject * object, guint prop_id,
       src->peer_alloc = g_value_get_boolean (value);
       break;
     case PROP_COLOR_SPEC:
-      src->color_spec = g_value_get_enum (value);
       break;
     case PROP_K0:
       src->k0 = g_value_get_int (value);
@@ -481,7 +482,6 @@ gst_video_test_src_get_property (GObject * object, guint prop_id,
       g_value_set_boolean (value, src->peer_alloc);
       break;
     case PROP_COLOR_SPEC:
-      g_value_set_enum (value, src->color_spec);
       break;
     case PROP_K0:
       g_value_set_int (value, src->k0);





More information about the Gstreamer-commits mailing list