gst_navigation_message_parse_mouse_over (GstMessage * message,
gboolean * active)
{
- g_return_val_if_fail (GST_NAVIGATION_MESSAGE_HAS_TYPE (message, MOUSE_OVER),
- FALSE);
+ if (!GST_NAVIGATION_MESSAGE_HAS_TYPE (message, MOUSE_OVER))
+ return FALSE;
if (active) {
const GstStructure *s = gst_message_get_structure (message);
- g_return_val_if_fail (gst_structure_get_boolean (s, "active", active),
- FALSE);
+ if (gst_structure_get_boolean (s, "active", active) == FALSE)
+ return FALSE;
}
return TRUE;
GST_DEBUG_OBJECT (v4lsrc, "creating buffer for frame %d", num);
- g_return_val_if_fail (gst_v4lsrc_get_fps (v4lsrc, &fps_n, &fps_d), NULL);
+ if (!(gst_v4lsrc_get_fps (v4lsrc, &fps_n, &fps_d)))
+ return NULL;
buf = (GstBuffer *) gst_mini_object_new (GST_TYPE_V4LSRC_BUFFER);