mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
ext/libcaca/gstcacasink.c: Fix width and height properties.
Original commit message from CVS: * ext/libcaca/gstcacasink.c: (gst_cacasink_class_init): Fix width and height properties. * ext/libcaca/gstcacasink.h: Fix compilation on newer libcaca that require us to include a new header. Fixes #379918.
This commit is contained in:
parent
f249d639f8
commit
3244d5cb8a
3 changed files with 21 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2006-11-28 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* ext/libcaca/gstcacasink.c: (gst_cacasink_class_init):
|
||||||
|
Fix width and height properties.
|
||||||
|
|
||||||
|
* ext/libcaca/gstcacasink.h:
|
||||||
|
Fix compilation on newer libcaca that require us to include a new
|
||||||
|
header. Fixes #379918.
|
||||||
|
|
||||||
2006-11-28 Wim Taymans <wim@fluendo.com>
|
2006-11-28 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open):
|
* gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_open):
|
||||||
|
|
|
@ -149,13 +149,19 @@ gst_cacasink_class_init (GstCACASinkClass * klass)
|
||||||
gobject_class->get_property = gst_cacasink_get_property;
|
gobject_class->get_property = gst_cacasink_get_property;
|
||||||
gstelement_class->change_state = gst_cacasink_change_state;
|
gstelement_class->change_state = gst_cacasink_change_state;
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SCREEN_WIDTH, g_param_spec_int ("screen-width", "screen_width", "screen_width", G_MININT, G_MAXINT, 0, G_PARAM_READABLE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SCREEN_WIDTH,
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SCREEN_HEIGHT, g_param_spec_int ("screen-height", "screen_height", "screen_height", G_MININT, G_MAXINT, 0, G_PARAM_READABLE)); /* CHECKME */
|
g_param_spec_int ("screen-width", "Screen Width",
|
||||||
|
"The width of the screen", 0, G_MAXINT, GST_CACA_DEFAULT_SCREEN_WIDTH,
|
||||||
|
G_PARAM_READABLE));
|
||||||
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SCREEN_HEIGHT,
|
||||||
|
g_param_spec_int ("screen-height", "Screen Height",
|
||||||
|
"The height of the screen", 0, G_MAXINT,
|
||||||
|
GST_CACA_DEFAULT_SCREEN_HEIGHT, G_PARAM_READABLE));
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DITHER,
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DITHER,
|
||||||
g_param_spec_enum ("dither", "Dither Type", "Set type of Dither",
|
g_param_spec_enum ("dither", "Dither Type", "Set type of Dither",
|
||||||
GST_TYPE_CACADITHER, CACA_DITHERING_NONE, G_PARAM_READWRITE));
|
GST_TYPE_CACADITHER, CACA_DITHERING_NONE, G_PARAM_READWRITE));
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ANTIALIASING,
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ANTIALIASING,
|
||||||
g_param_spec_boolean ("anti-aliasing", "Anti-Aliasing",
|
g_param_spec_boolean ("anti-aliasing", "Anti Aliasing",
|
||||||
"Enables Anti-Aliasing", TRUE, G_PARAM_READWRITE));
|
"Enables Anti-Aliasing", TRUE, G_PARAM_READWRITE));
|
||||||
|
|
||||||
gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_cacasink_setcaps);
|
gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_cacasink_setcaps);
|
||||||
|
|
|
@ -26,6 +26,9 @@
|
||||||
#include <gst/video/video.h>
|
#include <gst/video/video.h>
|
||||||
|
|
||||||
#include <caca.h>
|
#include <caca.h>
|
||||||
|
#ifdef CACA_API_VERSION_1
|
||||||
|
# include <caca0.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Reference in a new issue