diff options
author | Julien Moutte <julien@moutte.net> | 2004-01-14 17:15:34 +0000 |
---|---|---|
committer | Julien Moutte <julien@moutte.net> | 2004-01-14 17:15:34 +0000 |
commit | 1ab97c70ff2ed77cfb141752e8bdbb49fe709932 (patch) | |
tree | a81ab9ae26221e66d85084fb4ff5847b614c98d2 /gst-libs | |
parent | 99b8362dbad2d2dccf0c2a698ba0f984c436e0ba (diff) | |
download | gst-plugins-bad-1ab97c70ff2ed77cfb141752e8bdbb49fe709932.tar.gz gst-plugins-bad-1ab97c70ff2ed77cfb141752e8bdbb49fe709932.tar.bz2 gst-plugins-bad-1ab97c70ff2ed77cfb141752e8bdbb49fe709932.zip |
gst-libs/gst/colorbalance/colorbalance.c: Adding a default type.
Original commit message from CVS:
2004-01-14 Julien MOUTTE <julien@moutte.net>
* gst-libs/gst/colorbalance/colorbalance.c:
(gst_color_balance_class_init): Adding a default type.
* gst-libs/gst/colorbalance/colorbalance.h: Adding a macro to access
the type.
* gst/videofilter/gstvideobalance.c: (gst_videobalance_get_type),
(gst_videobalance_dispose), (gst_videobalance_class_init),
(gst_videobalance_init), (gst_videobalance_interface_supported),
(gst_videobalance_interface_init),
(gst_videobalance_colorbalance_list_channels),
(gst_videobalance_colorbalance_set_value),
(gst_videobalance_colorbalance_get_value),
(gst_videobalance_colorbalance_init): Implementing colorbalance
interface.
* gst/videofilter/gstvideobalance.h: Adding colorbalance channels
list.
* sys/ximage/ximagesink.c: (gst_ximagesink_set_xwindow_id): Fixing a
bug which was triggering a BadAccess X error when setting an overlay
before pad was really negotiated.
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_colorbalance_init):
Using the colorbalance type macro.
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/colorbalance/colorbalance.c | 2 | ||||
-rw-r--r-- | gst-libs/gst/colorbalance/colorbalance.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/colorbalance/colorbalance.c b/gst-libs/gst/colorbalance/colorbalance.c index 163111cd..272b7eb9 100644 --- a/gst-libs/gst/colorbalance/colorbalance.c +++ b/gst-libs/gst/colorbalance/colorbalance.c @@ -82,6 +82,8 @@ gst_color_balance_class_init (GstColorBalanceClass *klass) initialized = TRUE; } + klass->balance_type = GST_COLOR_BALANCE_SOFTWARE; + /* default virtual functions */ klass->list_channels = NULL; klass->set_value = NULL; diff --git a/gst-libs/gst/colorbalance/colorbalance.h b/gst-libs/gst/colorbalance/colorbalance.h index 3f365485..3eb126cf 100644 --- a/gst-libs/gst/colorbalance/colorbalance.h +++ b/gst-libs/gst/colorbalance/colorbalance.h @@ -41,6 +41,8 @@ G_BEGIN_DECLS (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_COLOR_BALANCE)) #define GST_COLOR_BALANCE_GET_CLASS(inst) \ (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_COLOR_BALANCE, GstColorBalanceClass)) + +#define GST_COLOR_BALANCE_TYPE(klass) (klass->balance_type) typedef struct _GstColorBalance GstColorBalance; |