summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/videoparse/Makefile.am2
-rw-r--r--gst/videoparse/gstvideoparse.c6
2 files changed, 4 insertions, 4 deletions
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);