diff options
author | Fredrik Persson <frepe@broadband.net> | 2006-10-18 11:04:09 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-10-18 11:04:09 +0000 |
commit | 7d5caee3b560c272bfc7a76057ce61394830b2a3 (patch) | |
tree | 57aeb65adddb90458605ca724113c4b4e2e78df6 /sys/v4l2 | |
parent | ad1f788ac15633c7d52d3d996cd4b62e03dd352a (diff) |
sys/v4l2/gstv4l2tuner.*: Fix _set_channel(): remove useless g_object_notify() for "channel" property that doesn't exi...
Original commit message from CVS:
Patch by: Fredrik Persson <frepe at broadband net>
* sys/v4l2/gstv4l2tuner.c:
* sys/v4l2/gstv4l2tuner.h:
Fix _set_channel(): remove useless g_object_notify() for "channel"
property that doesn't exist any longer and therefore now also
useless redirect (#338818).
Diffstat (limited to 'sys/v4l2')
-rw-r--r-- | sys/v4l2/gstv4l2tuner.c | 9 | ||||
-rw-r--r-- | sys/v4l2/gstv4l2tuner.h | 10 |
2 files changed, 4 insertions, 15 deletions
diff --git a/sys/v4l2/gstv4l2tuner.c b/sys/v4l2/gstv4l2tuner.c index 5eb78776..699540c9 100644 --- a/sys/v4l2/gstv4l2tuner.c +++ b/sys/v4l2/gstv4l2tuner.c @@ -141,15 +141,6 @@ gst_v4l2_tuner_list_channels (GstV4l2Object * v4l2object) return v4l2object->channels; } -void -gst_v4l2_tuner_set_channel_and_notify (GstV4l2Object * v4l2object, - GstTunerChannel * channel) -{ - if (gst_v4l2_tuner_set_channel (v4l2object, channel)) { - g_object_notify (G_OBJECT (v4l2object->element), "channel"); - } -} - gboolean gst_v4l2_tuner_set_channel (GstV4l2Object * v4l2object, GstTunerChannel * channel) diff --git a/sys/v4l2/gstv4l2tuner.h b/sys/v4l2/gstv4l2tuner.h index 40d2e1fc..5ec2b67e 100644 --- a/sys/v4l2/gstv4l2tuner.h +++ b/sys/v4l2/gstv4l2tuner.h @@ -84,8 +84,6 @@ GType gst_v4l2_tuner_norm_get_type (void); /* channels */ const GList* gst_v4l2_tuner_list_channels (GstV4l2Object * v4l2object); -void gst_v4l2_tuner_set_channel_and_notify (GstV4l2Object * v4l2object, - GstTunerChannel * channel); GstTunerChannel* gst_v4l2_tuner_get_channel (GstV4l2Object * v4l2object); gboolean gst_v4l2_tuner_set_channel (GstV4l2Object * v4l2object, GstTunerChannel * channel); @@ -118,11 +116,11 @@ interface_as_function ## _tuner_list_channels (GstTuner * mixer) } \ \ static void \ -interface_as_function ## _tuner_set_channel_and_notify (GstTuner * mixer, \ - GstTunerChannel * channel) \ +interface_as_function ## _tuner_set_channel (GstTuner * mixer, \ + GstTunerChannel * channel) \ { \ Type *this = (Type*) mixer; \ - gst_v4l2_tuner_set_channel_and_notify (this->v4l2object, channel); \ + gst_v4l2_tuner_set_channel (this->v4l2object, channel); \ } \ static GstTunerChannel * \ interface_as_function ## _tuner_get_channel (GstTuner * mixer) \ @@ -180,7 +178,7 @@ interface_as_function ## _tuner_interface_init (GstTunerClass * klass) { \ /* default virtual functions */ \ klass->list_channels = interface_as_function ## _tuner_list_channels; \ - klass->set_channel = interface_as_function ## _tuner_set_channel_and_notify; \ + klass->set_channel = interface_as_function ## _tuner_set_channel; \ klass->get_channel = interface_as_function ## _tuner_get_channel; \ \ klass->list_norms = interface_as_function ## _tuner_list_norms; \ |