From f9dd03ca3b7e2a66df16b96fd7c1b0d89c6a4250 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Sun, 20 Aug 2006 13:09:51 +0000 Subject: [PATCH] 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 --- ChangeLog | 6 ++++++ ext/gdk_pixbuf/pixbufscale.c | 2 +- gst/videobox/gstvideobox.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 38da2d8..9be6fdb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2006-08-20 Stefan Kost + * 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 + * docs/plugins/gst-plugins-good-plugins-docs.sgml: * docs/plugins/gst-plugins-good-plugins-sections.txt: * docs/plugins/inspect/plugin-audiofxgood.xml: diff --git a/ext/gdk_pixbuf/pixbufscale.c b/ext/gdk_pixbuf/pixbufscale.c index 78da1b7..9c4907b 100644 --- a/ext/gdk_pixbuf/pixbufscale.c +++ b/ext/gdk_pixbuf/pixbufscale.c @@ -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); diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index f3cb715..f7f9b89 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -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); -- 2.7.4