summaryrefslogtreecommitdiffstats
path: root/sys/vdpau
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2009-04-13 20:04:21 +0200
committerJan Schmidt <thaytan@noraisin.net>2009-06-20 15:21:26 +0100
commit91ff1579f32a6c0d9769cf44f5065d2811ba01f7 (patch)
treeb8db37942d9c632326dd5d432bcaaeef67fc3783 /sys/vdpau
parenta7170c6ef7e1dd7d623b5a0d61a654b433b2ec2d (diff)
downloadgst-plugins-bad-91ff1579f32a6c0d9769cf44f5065d2811ba01f7.tar.gz
gst-plugins-bad-91ff1579f32a6c0d9769cf44f5065d2811ba01f7.tar.bz2
gst-plugins-bad-91ff1579f32a6c0d9769cf44f5065d2811ba01f7.zip
vdpau: remove unused "silent" properties
Diffstat (limited to 'sys/vdpau')
-rw-r--r--sys/vdpau/gstvdpaudevice.c1
-rw-r--r--sys/vdpau/gstvdpaumpegdecoder.c18
-rw-r--r--sys/vdpau/gstvdpaumpegdecoder.h2
-rw-r--r--sys/vdpau/gstvdpauvideoyuv.c18
-rw-r--r--sys/vdpau/gstvdpauvideoyuv.h2
-rw-r--r--sys/vdpau/gstvdpauyuvvideo.c14
-rw-r--r--sys/vdpau/gstvdpauyuvvideo.h2
7 files changed, 3 insertions, 54 deletions
diff --git a/sys/vdpau/gstvdpaudevice.c b/sys/vdpau/gstvdpaudevice.c
index 73929444..c5a5f641 100644
--- a/sys/vdpau/gstvdpaudevice.c
+++ b/sys/vdpau/gstvdpaudevice.c
@@ -29,7 +29,6 @@ GST_DEBUG_CATEGORY_STATIC (gst_vdpau_device_debug);
enum
{
PROP_0,
-
PROP_DISPLAY
};
diff --git a/sys/vdpau/gstvdpaumpegdecoder.c b/sys/vdpau/gstvdpaumpegdecoder.c
index 67af4e3f..ecb801a0 100644
--- a/sys/vdpau/gstvdpaumpegdecoder.c
+++ b/sys/vdpau/gstvdpaumpegdecoder.c
@@ -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;
diff --git a/sys/vdpau/gstvdpaumpegdecoder.h b/sys/vdpau/gstvdpaumpegdecoder.h
index d251480c..1a97c270 100644
--- a/sys/vdpau/gstvdpaumpegdecoder.h
+++ b/sys/vdpau/gstvdpaumpegdecoder.h
@@ -41,8 +41,6 @@ struct _GstVdpauMpegDecoder
{
GstVdpauDecoder dec;
- gboolean silent;
-
gint version;
VdpDecoder decoder;
diff --git a/sys/vdpau/gstvdpauvideoyuv.c b/sys/vdpau/gstvdpauvideoyuv.c
index f7ebe8a9..879e4562 100644
--- a/sys/vdpau/gstvdpauvideoyuv.c
+++ b/sys/vdpau/gstvdpauvideoyuv.c
@@ -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;
diff --git a/sys/vdpau/gstvdpauvideoyuv.h b/sys/vdpau/gstvdpauvideoyuv.h
index dd033df7..477b3067 100644
--- a/sys/vdpau/gstvdpauvideoyuv.h
+++ b/sys/vdpau/gstvdpauvideoyuv.h
@@ -47,8 +47,6 @@ struct _GstVdpauVideoYUV {
gint framerate_numerator, framerate_denominator;
gint par_numerator, par_denominator;
guint format;
-
- gboolean silent;
};
struct _GstVdpauVideoYUVClass {
diff --git a/sys/vdpau/gstvdpauyuvvideo.c b/sys/vdpau/gstvdpauyuvvideo.c
index 51500c55..a9ccb731 100644
--- a/sys/vdpau/gstvdpauyuvvideo.c
+++ b/sys/vdpau/gstvdpauyuvvideo.c
@@ -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;
diff --git a/sys/vdpau/gstvdpauyuvvideo.h b/sys/vdpau/gstvdpauyuvvideo.h
index 118715e6..e80eacf9 100644
--- a/sys/vdpau/gstvdpauyuvvideo.h
+++ b/sys/vdpau/gstvdpauyuvvideo.h
@@ -49,8 +49,6 @@ struct _GstVdpauYUVVideo {
guint32 format;
gint chroma_type;
gint width, height;
-
- gboolean silent;
};
struct _GstVdpauYUVVideoClass {