diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index 2b50b8eed0..8741deb713 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -1000,7 +1000,7 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer) gboolean new_pts = FALSE; mad = GST_MAD (gst_pad_get_parent (pad)); - g_assert (GST_IS_MAD (mad)); + g_return_if_fail (GST_IS_MAD (mad)); /* handle events */ if (GST_IS_EVENT (buffer))