{
GstTestClass *klass = GST_TEST_GET_CLASS (basesink);
GstTest *test = GST_TEST (basesink);
- gboolean ret = FALSE;
switch (GST_EVENT_TYPE (event)) {
/*
}
}
g_object_thaw_notify (G_OBJECT (test));
- ret = TRUE;
break;
}
default:
break;
}
- return ret;
+ return GST_BASE_SINK_CLASS (parent_class)->event (basesink, event);
}
static GstFlowReturn
{
GstMultiFileSink *multifilesink;
gchar *filename;
- gboolean res = TRUE;
multifilesink = GST_MULTI_FILE_SINK (sink);
}
out:
- return res;
+ return GST_BASE_SINK_CLASS (parent_class)->event (sink, event);
+ /* ERRORS */
stdio_write_error:
- GST_ELEMENT_ERROR (multifilesink, RESOURCE, WRITE,
- ("Error while writing to file."), (NULL));
- return FALSE;
+ {
+ GST_ELEMENT_ERROR (multifilesink, RESOURCE, WRITE,
+ ("Error while writing to file."), (NULL));
+ gst_event_unref (event);
+ return FALSE;
+ }
}
static gboolean