mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
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().
This commit is contained in:
parent
d499702646
commit
1aea3ef363
3 changed files with 14 additions and 4 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2007-12-13 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* 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().
|
||||
|
||||
2007-12-12 David Schleef <ds@schleef.org>
|
||||
|
||||
* gst/videoparse/README:
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue