use g_assert in _get_unit_size

Original commit message from CVS:
* ext/gdk_pixbuf/pixbufscale.c: (gst_pixbufscale_get_unit_size):
* gst/videobox/gstvideobox.c: (gst_video_box_get_unit_size):
use g_assert in _get_unit_size
This commit is contained in:
Stefan Kost 2006-08-20 13:09:51 +00:00
parent 83bedf3e07
commit f9dd03ca3b
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2006-08-20 Stefan Kost <ensonic@users.sf.net>
* ext/gdk_pixbuf/pixbufscale.c: (gst_pixbufscale_get_unit_size):
* gst/videobox/gstvideobox.c: (gst_video_box_get_unit_size):
use g_assert in _get_unit_size
2006-08-20 Stefan Kost <ensonic@users.sf.net>
* docs/plugins/gst-plugins-good-plugins-docs.sgml:

View file

@ -306,7 +306,7 @@ gst_pixbufscale_get_unit_size (GstBaseTransform * trans,
GstPixbufScale *pixbufscale;
gint width, height;
g_return_val_if_fail (size, FALSE);
g_assert (size);
pixbufscale = GST_PIXBUFSCALE (trans);

View file

@ -440,7 +440,8 @@ gst_video_box_get_unit_size (GstBaseTransform * trans, GstCaps * caps,
guint32 fourcc;
gint width, height;
g_return_val_if_fail (size, FALSE);
g_assert (size);
video_box = GST_VIDEO_BOX (trans);
structure = gst_caps_get_structure (caps, 0);