diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2005-11-21 14:29:53 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2005-11-21 14:29:53 +0000 |
commit | 1cc82e91389c8baf3560815a8715e792f91bb0d8 (patch) | |
tree | 803fcb445eba912bf5b7bee141c50e224172d38d /sys | |
parent | 213898e8dcc254caceee697bba9f79cc923f9b10 (diff) |
Rename gst_caps_structure_fixate_* to gst_structure_fixate_* (#322027)
Original commit message from CVS:
* ext/libvisual/visual.c: (get_buffer):
* gst-libs/gst/audio/gstbaseaudiosrc.c:
(gst_base_audio_src_fixate):
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_fixate_caps):
* gst/audioscale/gstaudioscale.c: (gst_audioscale_fixate):
* gst/audiotestsrc/gstaudiotestsrc.c:
(gst_audiotestsrc_src_fixate):
* gst/sine/gstsinesrc.c: (gst_sinesrc_src_fixate):
* gst/videorate/gstvideorate.c: (gst_videorate_setcaps):
* gst/videoscale/gstvideoscale.c: (gst_videoscale_fixate_caps):
* gst/videotestsrc/gstvideotestsrc.c:
(gst_videotestsrc_src_fixate):
* sys/v4l/gstv4lsrc.c: (gst_v4lsrc_fixate):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_fixate):
Rename gst_caps_structure_fixate_* to gst_structure_fixate_*
(#322027)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/v4l/gstv4lsrc.c | 9 | ||||
-rw-r--r-- | sys/xvimage/xvimagesink.c | 7 |
2 files changed, 6 insertions, 10 deletions
diff --git a/sys/v4l/gstv4lsrc.c b/sys/v4l/gstv4lsrc.c index 78da9003..3f5a4aa0 100644 --- a/sys/v4l/gstv4lsrc.c +++ b/sys/v4l/gstv4lsrc.c @@ -234,12 +234,9 @@ gst_v4lsrc_fixate (GstPad * pad, GstCaps * caps) structure = gst_caps_get_structure (caps, i); const GValue *v; - gst_caps_structure_fixate_field_nearest_int (structure, "width", - targetwidth); - gst_caps_structure_fixate_field_nearest_int (structure, "height", - targetheight); - gst_caps_structure_fixate_field_nearest_double (structure, "framerate", - 7.5); + gst_structure_fixate_field_nearest_int (structure, "width", targetwidth); + gst_structure_fixate_field_nearest_int (structure, "height", targetheight); + gst_structure_fixate_field_nearest_double (structure, "framerate", 7.5); v = gst_structure_get_value (structure, "format"); if (v && G_VALUE_TYPE (v) != GST_TYPE_FOURCC) { diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 5c0d1954..553ac399 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -1240,14 +1240,13 @@ gst_xvimagesink_fixate (GstPad * pad, const GstCaps * caps) newcaps = gst_caps_copy (caps); structure = gst_caps_get_structure (newcaps, 0); - if (gst_caps_structure_fixate_field_nearest_int (structure, "width", 320)) { + if (gst_structure_fixate_field_nearest_int (structure, "width", 320)) { return newcaps; } - if (gst_caps_structure_fixate_field_nearest_int (structure, "height", 240)) { + if (gst_structure_fixate_field_nearest_int (structure, "height", 240)) { return newcaps; } - if (gst_caps_structure_fixate_field_nearest_double (structure, "framerate", - 30.0)) { + if (gst_structure_fixate_field_nearest_double (structure, "framerate", 30.0)) { return newcaps; } |