mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
vdpau: remove unused "silent" properties
This commit is contained in:
parent
a7170c6ef7
commit
91ff1579f3
7 changed files with 3 additions and 54 deletions
|
@ -29,7 +29,6 @@ GST_DEBUG_CATEGORY_STATIC (gst_vdpau_device_debug);
|
|||
enum
|
||||
{
|
||||
PROP_0,
|
||||
|
||||
PROP_DISPLAY
|
||||
};
|
||||
|
||||
|
|
|
@ -53,8 +53,7 @@ enum
|
|||
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_SILENT
|
||||
PROP_0
|
||||
};
|
||||
|
||||
/* the capabilities of the inputs and outputs.
|
||||
|
@ -408,10 +407,6 @@ gst_vdpau_mpeg_decoder_class_init (GstVdpauMpegDecoderClass * klass)
|
|||
gobject_class->set_property = gst_vdpau_mpeg_decoder_set_property;
|
||||
gobject_class->get_property = gst_vdpau_mpeg_decoder_get_property;
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_SILENT,
|
||||
g_param_spec_boolean ("silent", "Silent", "Produce verbose output ?",
|
||||
FALSE, G_PARAM_READWRITE));
|
||||
|
||||
vdpaudec_class->set_caps = gst_vdpau_mpeg_decoder_set_caps;
|
||||
}
|
||||
|
||||
|
@ -436,7 +431,6 @@ gst_vdpau_mpeg_decoder_init (GstVdpauMpegDecoder * mpeg_dec,
|
|||
|
||||
dec = GST_VDPAU_DECODER (mpeg_dec);
|
||||
|
||||
mpeg_dec->silent = FALSE;
|
||||
mpeg_dec->decoder = VDP_INVALID_HANDLE;
|
||||
gst_vdpau_mpeg_decoder_init_info (&mpeg_dec->vdp_info);
|
||||
|
||||
|
@ -457,12 +451,7 @@ static void
|
|||
gst_vdpau_mpeg_decoder_set_property (GObject * object, guint prop_id,
|
||||
const GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
GstVdpauMpegDecoder *filter = GST_VDPAU_MPEG_DECODER (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_SILENT:
|
||||
filter->silent = g_value_get_boolean (value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
|
@ -473,12 +462,7 @@ static void
|
|||
gst_vdpau_mpeg_decoder_get_property (GObject * object, guint prop_id,
|
||||
GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
GstVdpauMpegDecoder *filter = GST_VDPAU_MPEG_DECODER (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_SILENT:
|
||||
g_value_set_boolean (value, filter->silent);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
|
|
|
@ -41,8 +41,6 @@ struct _GstVdpauMpegDecoder
|
|||
{
|
||||
GstVdpauDecoder dec;
|
||||
|
||||
gboolean silent;
|
||||
|
||||
gint version;
|
||||
|
||||
VdpDecoder decoder;
|
||||
|
|
|
@ -40,8 +40,7 @@ enum
|
|||
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_SILENT
|
||||
PROP_0
|
||||
};
|
||||
|
||||
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
|
@ -387,17 +386,12 @@ gst_vdpau_video_yuv_class_init (GstVdpauVideoYUVClass * klass)
|
|||
gobject_class->finalize = gst_vdpau_video_yuv_finalize;
|
||||
gobject_class->set_property = gst_vdpau_video_yuv_set_property;
|
||||
gobject_class->get_property = gst_vdpau_video_yuv_get_property;
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_SILENT,
|
||||
g_param_spec_boolean ("silent", "Silent", "Produce verbose output ?",
|
||||
FALSE, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
gst_vdpau_video_yuv_init (GstVdpauVideoYUV * video_yuv,
|
||||
GstVdpauVideoYUVClass * klass)
|
||||
{
|
||||
video_yuv->silent = FALSE;
|
||||
video_yuv->src_caps = NULL;
|
||||
|
||||
video_yuv->height = 0;
|
||||
|
@ -433,12 +427,7 @@ static void
|
|||
gst_vdpau_video_yuv_set_property (GObject * object, guint prop_id,
|
||||
const GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
GstVdpauVideoYUV *video_yuv = GST_VDPAU_VIDEO_YUV (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_SILENT:
|
||||
video_yuv->silent = g_value_get_boolean (value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
|
@ -449,12 +438,7 @@ static void
|
|||
gst_vdpau_video_yuv_get_property (GObject * object, guint prop_id,
|
||||
GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
GstVdpauVideoYUV *video_yuv = GST_VDPAU_VIDEO_YUV (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_SILENT:
|
||||
g_value_set_boolean (value, video_yuv->silent);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
|
|
|
@ -47,8 +47,6 @@ struct _GstVdpauVideoYUV {
|
|||
gint framerate_numerator, framerate_denominator;
|
||||
gint par_numerator, par_denominator;
|
||||
guint format;
|
||||
|
||||
gboolean silent;
|
||||
};
|
||||
|
||||
struct _GstVdpauVideoYUVClass {
|
||||
|
|
|
@ -41,8 +41,7 @@ enum
|
|||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_DISPLAY,
|
||||
PROP_SILENT
|
||||
PROP_DISPLAY
|
||||
};
|
||||
|
||||
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
|
@ -407,10 +406,6 @@ gst_vdpau_yuv_video_class_init (GstVdpauYUVVideoClass * klass)
|
|||
g_param_spec_string ("display", "Display", "X Display name",
|
||||
NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_SILENT,
|
||||
g_param_spec_boolean ("silent", "Silent", "Produce verbose output ?",
|
||||
FALSE, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE));
|
||||
|
||||
gstelement_class->change_state = gst_vdpau_yuv_video_change_state;
|
||||
}
|
||||
|
||||
|
@ -418,7 +413,6 @@ static void
|
|||
gst_vdpau_yuv_video_init (GstVdpauYUVVideo * yuv_video,
|
||||
GstVdpauYUVVideoClass * klass)
|
||||
{
|
||||
yuv_video->silent = FALSE;
|
||||
yuv_video->sink_caps = NULL;
|
||||
|
||||
yuv_video->display = NULL;
|
||||
|
@ -461,9 +455,6 @@ gst_vdpau_yuv_video_set_property (GObject * object, guint prop_id,
|
|||
g_free (yuv_video->display);
|
||||
yuv_video->display = g_value_dup_string (value);
|
||||
break;
|
||||
case PROP_SILENT:
|
||||
yuv_video->silent = g_value_get_boolean (value);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
|
@ -480,9 +471,6 @@ gst_vdpau_yuv_video_get_property (GObject * object, guint prop_id,
|
|||
case PROP_DISPLAY:
|
||||
g_value_set_string (value, yuv_video->display);
|
||||
break;
|
||||
case PROP_SILENT:
|
||||
g_value_set_boolean (value, yuv_video->silent);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
|
|
|
@ -49,8 +49,6 @@ struct _GstVdpauYUVVideo {
|
|||
guint32 format;
|
||||
gint chroma_type;
|
||||
gint width, height;
|
||||
|
||||
gboolean silent;
|
||||
};
|
||||
|
||||
struct _GstVdpauYUVVideoClass {
|
||||
|
|
Loading…
Reference in a new issue