mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
fakesrc: removing unused pattern option
Eventhough the "pattern" property of fakesrc can be set, it is never used. The only pattern supported is the default 0x00 -> 0xff, and if a pattern is set by the user it is ignored. Removing the unused property and variable. https://bugzilla.gnome.org/show_bug.cgi?id=737683
This commit is contained in:
parent
917e4cd985
commit
9b34972ba1
2 changed files with 0 additions and 11 deletions
|
@ -76,7 +76,6 @@ enum
|
|||
#define DEFAULT_FILLTYPE FAKE_SRC_FILLTYPE_ZERO
|
||||
#define DEFAULT_DATARATE 0
|
||||
#define DEFAULT_SYNC FALSE
|
||||
#define DEFAULT_PATTERN NULL
|
||||
#define DEFAULT_EOS FALSE
|
||||
#define DEFAULT_SIGNAL_HANDOFFS FALSE
|
||||
#define DEFAULT_SILENT TRUE
|
||||
|
@ -97,7 +96,6 @@ enum
|
|||
PROP_FILLTYPE,
|
||||
PROP_DATARATE,
|
||||
PROP_SYNC,
|
||||
PROP_PATTERN,
|
||||
PROP_EOS,
|
||||
PROP_SIGNAL_HANDOFFS,
|
||||
PROP_SILENT,
|
||||
|
@ -279,9 +277,6 @@ gst_fake_src_class_init (GstFakeSrcClass * klass)
|
|||
g_object_class_install_property (gobject_class, PROP_SYNC,
|
||||
g_param_spec_boolean ("sync", "Sync", "Sync to the clock to the datarate",
|
||||
DEFAULT_SYNC, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
g_object_class_install_property (gobject_class, PROP_PATTERN,
|
||||
g_param_spec_string ("pattern", "pattern", "pattern", DEFAULT_PATTERN,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
pspec_last_message = g_param_spec_string ("last-message", "last-message",
|
||||
"The last status message", NULL,
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
|
||||
|
@ -481,8 +476,6 @@ gst_fake_src_set_property (GObject * object, guint prop_id,
|
|||
case PROP_SYNC:
|
||||
src->sync = g_value_get_boolean (value);
|
||||
break;
|
||||
case PROP_PATTERN:
|
||||
break;
|
||||
case PROP_SILENT:
|
||||
src->silent = g_value_get_boolean (value);
|
||||
break;
|
||||
|
@ -554,9 +547,6 @@ gst_fake_src_get_property (GObject * object, guint prop_id, GValue * value,
|
|||
case PROP_SYNC:
|
||||
g_value_set_boolean (value, src->sync);
|
||||
break;
|
||||
case PROP_PATTERN:
|
||||
g_value_set_string (value, src->pattern);
|
||||
break;
|
||||
case PROP_SILENT:
|
||||
g_value_set_boolean (value, src->silent);
|
||||
break;
|
||||
|
|
|
@ -134,7 +134,6 @@ struct _GstFakeSrc {
|
|||
guint parentsize;
|
||||
guint parentoffset;
|
||||
guint8 pattern_byte;
|
||||
gchar *pattern;
|
||||
GList *patternlist;
|
||||
gint datarate;
|
||||
gboolean sync;
|
||||
|
|
Loading…
Reference in a new issue