From ea0de11a50da0afd151fb92f30bc216df6e52a56 Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Thu, 22 Jun 2006 10:10:51 +0000 Subject: gst/: Avoid unnecessary class cast check in class_init functions (#337747). Original commit message from CVS: Patch by: Cody Russell * gst/audioresample/gstaudioresample.c: (gst_audioresample_class_init): * gst/playback/gststreamselector.c: (gst_stream_selector_class_init): * gst/subparse/gstsubparse.c: (gst_sub_parse_class_init): * gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_class_init): * gst/tcp/gsttcpclientsink.c: (gst_tcp_client_sink_class_init): * gst/tcp/gsttcpclientsrc.c: (gst_tcp_client_src_class_init): * gst/tcp/gsttcpserversink.c: (gst_tcp_server_sink_class_init): * gst/tcp/gsttcpserversrc.c: (gst_tcp_server_src_class_init): * gst/videoscale/gstvideoscale.c: (gst_video_scale_class_init): * gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_class_init): * gst/volume/gstvolume.c: (gst_volume_class_init): Avoid unnecessary class cast check in class_init functions (#337747). --- gst/audioresample/gstaudioresample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c index 732ada70..687a0637 100644 --- a/gst/audioresample/gstaudioresample.c +++ b/gst/audioresample/gstaudioresample.c @@ -156,7 +156,7 @@ gst_audioresample_class_init (GstAudioresampleClass * klass) gobject_class->set_property = gst_audioresample_set_property; gobject_class->get_property = gst_audioresample_get_property; - g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_FILTERLEN, + g_object_class_install_property (gobject_class, PROP_FILTERLEN, g_param_spec_int ("filter_length", "filter_length", "filter_length", 0, G_MAXINT, DEFAULT_FILTERLEN, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); -- cgit v1.2.1