gst/audioconvert/gstaudioconvert.c: Lower debug, use g_assert in _get_unit_size

Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_get_unit_size), (set_structure_widths):
Lower debug, use g_assert in _get_unit_size
* gst/audioresample/gstaudioresample.c:
(audioresample_get_unit_size):
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_get_unit_size):
* gst/videoscale/gstvideoscale.c: (gst_video_scale_get_unit_size):
use g_assert in _get_unit_size
This commit is contained in:
Stefan Kost 2006-08-20 13:05:44 +00:00
parent ebe1f68312
commit c2d7af84c1
5 changed files with 18 additions and 5 deletions

View file

@ -1,3 +1,16 @@
2006-08-20 Stefan Kost <ensonic@users.sf.net>
* gst/audioconvert/gstaudioconvert.c:
(gst_audio_convert_get_unit_size), (set_structure_widths):
Lower debug, use g_assert in _get_unit_size
* gst/audioresample/gstaudioresample.c:
(audioresample_get_unit_size):
* gst/ffmpegcolorspace/gstffmpegcolorspace.c:
(gst_ffmpegcsp_get_unit_size):
* gst/videoscale/gstvideoscale.c: (gst_video_scale_get_unit_size):
use g_assert in _get_unit_size
2006-08-18 Wim Taymans <wim@fluendo.com> 2006-08-18 Wim Taymans <wim@fluendo.com>
* docs/libs/gst-plugins-base-libs-sections.txt: * docs/libs/gst-plugins-base-libs-sections.txt:

View file

@ -299,7 +299,7 @@ gst_audio_convert_get_unit_size (GstBaseTransform * base, GstCaps * caps,
{ {
AudioConvertFmt fmt = { 0 }; AudioConvertFmt fmt = { 0 };
g_return_val_if_fail (size, FALSE); g_assert (size);
if (!gst_audio_convert_parse_caps (caps, &fmt)) if (!gst_audio_convert_parse_caps (caps, &fmt))
goto parse_error; goto parse_error;
@ -399,7 +399,7 @@ set_structure_widths (GstStructure * s, int min, int max)
for (width = min; width <= max; width += 8) { for (width = min; width <= max; width += 8) {
g_value_set_int (&val, width); g_value_set_int (&val, width);
gst_value_list_append_value (&list, &val); gst_value_list_append_value (&list, &val);
GST_DEBUG ("Appended width %d to widths available", width); GST_LOG ("Appended width %d to widths available", width);
} }
gst_structure_set_value (s, "width", &list); gst_structure_set_value (s, "width", &list);
g_value_unset (&val); g_value_unset (&val);

View file

@ -237,7 +237,7 @@ audioresample_get_unit_size (GstBaseTransform * base, GstCaps * caps,
GstStructure *structure; GstStructure *structure;
gboolean ret; gboolean ret;
g_return_val_if_fail (size, FALSE); g_assert (size);
/* this works for both float and int */ /* this works for both float and int */
structure = gst_caps_get_structure (caps, 0); structure = gst_caps_get_structure (caps, 0);

View file

@ -384,7 +384,7 @@ gst_ffmpegcsp_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
AVCodecContext *ctx = NULL; AVCodecContext *ctx = NULL;
gint width, height; gint width, height;
g_return_val_if_fail (size, FALSE); g_assert (size);
space = GST_FFMPEGCSP (btrans); space = GST_FFMPEGCSP (btrans);

View file

@ -532,7 +532,7 @@ gst_video_scale_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
gint format, width, height; gint format, width, height;
VSImage img; VSImage img;
g_return_val_if_fail (size, FALSE); g_assert (size);
videoscale = GST_VIDEO_SCALE (trans); videoscale = GST_VIDEO_SCALE (trans);