summaryrefslogtreecommitdiffstats
path: root/gst/debug/breakmydata.c
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2007-08-14 13:50:43 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2007-08-14 13:50:43 +0000
commite949d1989bc0bde37837586e27569088010e9b2a (patch)
tree61d7bc2243b20698d5f9d0e4319c3d4607d64339 /gst/debug/breakmydata.c
parentf944834a11bf9a42d24722dd35ba54179ba0ad9c (diff)
gst/debug/: Add new test element and clean-up the others a little.
Original commit message from CVS: * gst/debug/Makefile.am: * gst/debug/breakmydata.c: * gst/debug/gstdebug.c: * gst/debug/negotiation.c: * gst/debug/progressreport.c: * gst/debug/rndbuffersize.c: * gst/debug/testplugin.c: Add new test element and clean-up the others a little.
Diffstat (limited to 'gst/debug/breakmydata.c')
-rw-r--r--gst/debug/breakmydata.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/gst/debug/breakmydata.c b/gst/debug/breakmydata.c
index 473abb5b..b7cf73c1 100644
--- a/gst/debug/breakmydata.c
+++ b/gst/debug/breakmydata.c
@@ -16,6 +16,13 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
+/**
+ * SECTION:element-breakmydata
+ *
+ * This element modifies the contents of the buffer it is passed randomly
+ * according to the parameters set.
+ * It otherwise acts as an identity.
+ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -27,11 +34,6 @@
GST_DEBUG_CATEGORY_STATIC (gst_break_my_data_debug);
#define GST_CAT_DEFAULT gst_break_my_data_debug
-/* This plugin modifies the contents of the buffer it is passed randomly
- * according to the parameters set.
- * It otherwise acts as an identity.
- */
-
#define GST_TYPE_BREAK_MY_DATA \
(gst_break_my_data_get_type())
#define GST_BREAK_MY_DATA(obj) \
@@ -131,11 +133,11 @@ gst_break_my_data_class_init (GstBreakMyDataClass * klass)
g_object_class_install_property (gobject_class, ARG_SEED,
g_param_spec_uint ("seed", "seed",
"seed for randomness (initialized when going from READY to PAUSED)",
- 0, 0xFFFFFFFF, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, ARG_SET_TO,
g_param_spec_int ("set-to", "set-to",
"set changed bytes to this value (-1 means random value",
- -1, 255, -1, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
+ -1, G_MAXUINT8, -1, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, ARG_SKIP,
g_param_spec_uint ("skip", "skip",
"amount of bytes skipped at the beginning of stream",
@@ -289,7 +291,7 @@ gst_break_my_data_stop (GstBaseTransform * trans)
}
gboolean
-gst_break_my_data_plugin_init (GstPlugin * plugin, GstPluginClass * g_class)
+gst_break_my_data_plugin_init (GstPlugin * plugin)
{
if (!gst_element_register (plugin, "breakmydata", GST_RANK_NONE,
GST_TYPE_BREAK_MY_DATA))