From 1aea3ef36381297e6866a1a28b73e05804d5168e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 13 Dec 2007 08:54:08 +0000 Subject: gst/videoparse/Makefile.am: Add $(GST_PLUGINS_BASE_CFLAGS) to CFLAGS to fix the build. Original commit message from CVS: * gst/videoparse/Makefile.am: Add $(GST_PLUGINS_BASE_CFLAGS) to CFLAGS to fix the build. * gst/videoparse/gstvideoparse.c: (gst_video_parse_init), (gst_video_parse_set_property), (gst_video_parse_get_property): Use g_value_[sg]et_enum() for enum properties, g_value_[sg]et_int() gives a g_critical(). --- gst/videoparse/Makefile.am | 2 +- gst/videoparse/gstvideoparse.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'gst') diff --git a/gst/videoparse/Makefile.am b/gst/videoparse/Makefile.am index 7cc5fd2a..0e95a016 100644 --- a/gst/videoparse/Makefile.am +++ b/gst/videoparse/Makefile.am @@ -2,7 +2,7 @@ plugin_LTLIBRARIES = libgstvideoparse.la libgstvideoparse_la_SOURCES = gstvideoparse.c -libgstvideoparse_la_CFLAGS = $(GST_CFLAGS) +libgstvideoparse_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) libgstvideoparse_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) libgstvideoparse_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) diff --git a/gst/videoparse/gstvideoparse.c b/gst/videoparse/gstvideoparse.c index 790ea594..8c663cb7 100644 --- a/gst/videoparse/gstvideoparse.c +++ b/gst/videoparse/gstvideoparse.c @@ -234,7 +234,7 @@ gst_video_parse_init (GstVideoParse * vp, GstVideoParseClass * g_class) vp->width = 320; vp->height = 240; - vp->format = 0; + vp->format = GST_VIDEO_PARSE_FORMAT_I420; vp->par_n = 1; vp->par_d = 1; vp->fps_n = 25; @@ -265,7 +265,7 @@ gst_video_parse_set_property (GObject * object, guint prop_id, vp->height = g_value_get_int (value); break; case ARG_FORMAT: - vp->format = g_value_get_int (value); + vp->format = g_value_get_enum (value); break; case ARG_FRAMERATE: vp->fps_n = gst_value_get_fraction_numerator (value); @@ -296,7 +296,7 @@ gst_video_parse_get_property (GObject * object, guint prop_id, GValue * value, g_value_set_int (value, vp->height); break; case ARG_FORMAT: - g_value_set_int (value, vp->format); + g_value_set_enum (value, vp->format); break; case ARG_FRAMERATE: gst_value_set_fraction (value, vp->fps_n, vp->fps_d); -- cgit v1.2.1