Unsigned/signed case, missing void in no-argument functions and other small fixes to compile 100% clean on GCC4 (#301...

Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/autoplug/spidertest.c: (property_change_callback):
* gst/gstbin.c: (gst_bin_save_thyself), (gst_bin_restore_thyself):
* gst/gstcaps.c: (gst_caps_do_simplify), (gst_caps_save_thyself),
(gst_caps_load_thyself):
* gst/gstelement.c: (gst_element_save_thyself),
(gst_element_restore_thyself):
* gst/gstpad.c: (gst_pad_load_and_link), (gst_pad_save_thyself),
(gst_ghost_pad_save_thyself):
* gst/registries/gstlibxmlregistry.c: (read_string), (read_uint),
(read_enum), (load_pad_template), (load_feature), (load_plugin),
(load_paths):
* libs/gst/control/dparammanager.c: (_gst_dpman_initialize):
* libs/gst/control/unitconvert.c: (gst_unitconv_new),
(gst_unitconv_unit_spec):
* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_buffer_from_header), (gst_dp_caps_from_packet),
(gst_dp_event_from_packet):
Unsigned/signed case, missing void in no-argument functions
and other small fixes to compile 100% clean on GCC4 (#301166).
This commit is contained in:
Ronald S. Bultje 2005-04-22 09:34:31 +00:00
parent 01e9e90d8d
commit fc3f486636
10 changed files with 79 additions and 52 deletions

View file

@ -1,3 +1,27 @@
2005-04-22 Kjartan Maraas <kmaraas@gnome.org>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/autoplug/spidertest.c: (property_change_callback):
* gst/gstbin.c: (gst_bin_save_thyself), (gst_bin_restore_thyself):
* gst/gstcaps.c: (gst_caps_do_simplify), (gst_caps_save_thyself),
(gst_caps_load_thyself):
* gst/gstelement.c: (gst_element_save_thyself),
(gst_element_restore_thyself):
* gst/gstpad.c: (gst_pad_load_and_link), (gst_pad_save_thyself),
(gst_ghost_pad_save_thyself):
* gst/registries/gstlibxmlregistry.c: (read_string), (read_uint),
(read_enum), (load_pad_template), (load_feature), (load_plugin),
(load_paths):
* libs/gst/control/dparammanager.c: (_gst_dpman_initialize):
* libs/gst/control/unitconvert.c: (gst_unitconv_new),
(gst_unitconv_unit_spec):
* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_buffer_from_header), (gst_dp_caps_from_packet),
(gst_dp_event_from_packet):
Unsigned/signed case, missing void in no-argument functions
and other small fixes to compile 100% clean on GCC4 (#301166).
2005-04-21 Tim-Philipp Müller <tim at centricular dot net> 2005-04-21 Tim-Philipp Müller <tim at centricular dot net>
* gst/elements/gstelements.c: * gst/elements/gstelements.c:
@ -19,7 +43,6 @@
* gst/elements/gsttypefindelement.c: (gst_type_find_element_init), * gst/elements/gsttypefindelement.c: (gst_type_find_element_init),
(push_buffer_store), (gst_type_find_element_handle_event), (push_buffer_store), (gst_type_find_element_handle_event),
(gst_type_find_element_change_state): (gst_type_find_element_change_state):
Allow event caching while typefinding so we don't lose events.
* gst/elements/gsttypefindelement.h: * gst/elements/gsttypefindelement.h:
Allow event caching while typefinding so we don't lose events. Allow event caching while typefinding so we don't lose events.
* gst/gsttag.c: (_gst_tag_initialize): * gst/gsttag.c: (_gst_tag_initialize):

View file

@ -34,7 +34,7 @@ property_change_callback (GObject * object, GstObject * orig,
GParamSpec * pspec) GParamSpec * pspec)
{ {
GValue value = { 0, }; /* the important thing is that value.type = 0 */ GValue value = { 0, }; /* the important thing is that value.type = 0 */
gchar *str = 0; gchar *str = NULL;
if (pspec->flags & G_PARAM_READABLE) { if (pspec->flags & G_PARAM_READABLE) {
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec)); g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec));

View file

@ -1215,7 +1215,7 @@ gst_bin_save_thyself (GstObject * object, xmlNodePtr parent)
if (GST_OBJECT_CLASS (parent_class)->save_thyself) if (GST_OBJECT_CLASS (parent_class)->save_thyself)
GST_OBJECT_CLASS (parent_class)->save_thyself (GST_OBJECT (bin), parent); GST_OBJECT_CLASS (parent_class)->save_thyself (GST_OBJECT (bin), parent);
childlist = xmlNewChild (parent, NULL, "children", NULL); childlist = xmlNewChild (parent, NULL, (guchar *) "children", NULL);
GST_CAT_INFO (GST_CAT_XML, "[%s]: saving %d children", GST_CAT_INFO (GST_CAT_XML, "[%s]: saving %d children",
GST_ELEMENT_NAME (bin), bin->numchildren); GST_ELEMENT_NAME (bin), bin->numchildren);
@ -1223,7 +1223,7 @@ gst_bin_save_thyself (GstObject * object, xmlNodePtr parent)
children = bin->children; children = bin->children;
while (children) { while (children) {
child = GST_ELEMENT (children->data); child = GST_ELEMENT (children->data);
elementnode = xmlNewChild (childlist, NULL, "element", NULL); elementnode = xmlNewChild (childlist, NULL, (guchar *) "element", NULL);
gst_object_save_thyself (GST_OBJECT (child), elementnode); gst_object_save_thyself (GST_OBJECT (child), elementnode);
children = g_list_next (children); children = g_list_next (children);
} }
@ -1238,12 +1238,12 @@ gst_bin_restore_thyself (GstObject * object, xmlNodePtr self)
xmlNodePtr childlist; xmlNodePtr childlist;
while (field) { while (field) {
if (!strcmp (field->name, "children")) { if (!strcmp ((char *) field->name, "children")) {
GST_CAT_INFO (GST_CAT_XML, "[%s]: loading children", GST_CAT_INFO (GST_CAT_XML, "[%s]: loading children",
GST_ELEMENT_NAME (object)); GST_ELEMENT_NAME (object));
childlist = field->xmlChildrenNode; childlist = field->xmlChildrenNode;
while (childlist) { while (childlist) {
if (!strcmp (childlist->name, "element")) { if (!strcmp ((char *) childlist->name, "element")) {
GstElement *element = GstElement *element =
gst_xml_make_element (childlist, GST_OBJECT (bin)); gst_xml_make_element (childlist, GST_OBJECT (bin));

View file

@ -1228,7 +1228,7 @@ gst_caps_structure_simplify (GstStructure ** result,
gboolean gboolean
gst_caps_do_simplify (GstCaps * caps) gst_caps_do_simplify (GstCaps * caps)
{ {
GstStructure *simplify, *compare, *result; GstStructure *simplify, *compare, *result = NULL;
gint i, j, start; gint i, j, start;
gboolean changed = FALSE; gboolean changed = FALSE;
@ -1296,7 +1296,7 @@ gst_caps_save_thyself (const GstCaps * caps, xmlNodePtr parent)
{ {
char *s = gst_caps_to_string (caps); char *s = gst_caps_to_string (caps);
xmlNewChild (parent, NULL, "caps", s); xmlNewChild (parent, NULL, (guchar *) "caps", (guchar *) s);
g_free (s); g_free (s);
return parent; return parent;
} }
@ -1312,8 +1312,8 @@ gst_caps_save_thyself (const GstCaps * caps, xmlNodePtr parent)
GstCaps * GstCaps *
gst_caps_load_thyself (xmlNodePtr parent) gst_caps_load_thyself (xmlNodePtr parent)
{ {
if (strcmp ("caps", parent->name) == 0) { if (strcmp ("caps", (char *) parent->name) == 0) {
return gst_caps_from_string (xmlNodeGetContent (parent)); return gst_caps_from_string ((char *) xmlNodeGetContent (parent));
} }
return NULL; return NULL;

View file

@ -3148,7 +3148,7 @@ gst_element_save_thyself (GstObject * object, xmlNodePtr parent)
GList *pads; GList *pads;
GstElementClass *oclass; GstElementClass *oclass;
GParamSpec **specs, *spec; GParamSpec **specs, *spec;
gint nspecs, i; guint nspecs, i;
GValue value = { 0, }; GValue value = { 0, };
GstElement *element; GstElement *element;
@ -3158,12 +3158,14 @@ gst_element_save_thyself (GstObject * object, xmlNodePtr parent)
oclass = GST_ELEMENT_GET_CLASS (element); oclass = GST_ELEMENT_GET_CLASS (element);
xmlNewChild (parent, NULL, "name", GST_ELEMENT_NAME (element)); xmlNewChild (parent, NULL, (guchar *) "name",
(guchar *) GST_ELEMENT_NAME (element));
if (oclass->elementfactory != NULL) { if (oclass->elementfactory != NULL) {
GstElementFactory *factory = (GstElementFactory *) oclass->elementfactory; GstElementFactory *factory = (GstElementFactory *) oclass->elementfactory;
xmlNewChild (parent, NULL, "type", GST_PLUGIN_FEATURE (factory)->name); xmlNewChild (parent, NULL, (guchar *) "type",
(guchar *) GST_PLUGIN_FEATURE (factory)->name);
} }
/* FIXME: what is this? */ /* FIXME: what is this? */
@ -3182,8 +3184,8 @@ gst_element_save_thyself (GstObject * object, xmlNodePtr parent)
g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (spec)); g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (spec));
g_object_get_property (G_OBJECT (element), spec->name, &value); g_object_get_property (G_OBJECT (element), spec->name, &value);
param = xmlNewChild (parent, NULL, "param", NULL); param = xmlNewChild (parent, NULL, (guchar *) "param", NULL);
xmlNewChild (param, NULL, "name", spec->name); xmlNewChild (param, NULL, (guchar *) "name", (guchar *) spec->name);
if (G_IS_PARAM_SPEC_STRING (spec)) if (G_IS_PARAM_SPEC_STRING (spec))
contents = g_value_dup_string (&value); contents = g_value_dup_string (&value);
@ -3195,7 +3197,7 @@ gst_element_save_thyself (GstObject * object, xmlNodePtr parent)
else else
contents = g_strdup_value_contents (&value); contents = g_strdup_value_contents (&value);
xmlNewChild (param, NULL, "value", contents); xmlNewChild (param, NULL, (guchar *) "value", (guchar *) contents);
g_free (contents); g_free (contents);
g_value_unset (&value); g_value_unset (&value);
@ -3209,7 +3211,7 @@ gst_element_save_thyself (GstObject * object, xmlNodePtr parent)
/* figure out if it's a direct pad or a ghostpad */ /* figure out if it's a direct pad or a ghostpad */
if (GST_ELEMENT (GST_OBJECT_PARENT (pad)) == element) { if (GST_ELEMENT (GST_OBJECT_PARENT (pad)) == element) {
xmlNodePtr padtag = xmlNewChild (parent, NULL, "pad", NULL); xmlNodePtr padtag = xmlNewChild (parent, NULL, (guchar *) "pad", NULL);
gst_object_save_thyself (GST_OBJECT (pad), padtag); gst_object_save_thyself (GST_OBJECT (pad), padtag);
} }
@ -3233,14 +3235,14 @@ gst_element_restore_thyself (GstObject * object, xmlNodePtr self)
/* parameters */ /* parameters */
children = self->xmlChildrenNode; children = self->xmlChildrenNode;
while (children) { while (children) {
if (!strcmp (children->name, "param")) { if (!strcmp ((char *) children->name, "param")) {
xmlNodePtr child = children->xmlChildrenNode; xmlNodePtr child = children->xmlChildrenNode;
while (child) { while (child) {
if (!strcmp (child->name, "name")) { if (!strcmp ((char *) child->name, "name")) {
name = xmlNodeGetContent (child); name = (char *) xmlNodeGetContent (child);
} else if (!strcmp (child->name, "value")) { } else if (!strcmp ((char *) child->name, "value")) {
value = xmlNodeGetContent (child); value = (char *) xmlNodeGetContent (child);
} }
child = child->next; child = child->next;
} }
@ -3256,7 +3258,7 @@ gst_element_restore_thyself (GstObject * object, xmlNodePtr self)
/* pads */ /* pads */
children = self->xmlChildrenNode; children = self->xmlChildrenNode;
while (children) { while (children) {
if (!strcmp (children->name, "pad")) { if (!strcmp ((char *) children->name, "pad")) {
gst_pad_load_and_link (children, GST_OBJECT (element)); gst_pad_load_and_link (children, GST_OBJECT (element));
} }
children = children->next; children = children->next;

View file

@ -3079,12 +3079,12 @@ gst_pad_load_and_link (xmlNodePtr self, GstObject * parent)
gchar *name = NULL; gchar *name = NULL;
while (field) { while (field) {
if (!strcmp (field->name, "name")) { if (!strcmp ((char *) field->name, "name")) {
name = xmlNodeGetContent (field); name = (char *) xmlNodeGetContent (field);
pad = gst_element_get_pad (GST_ELEMENT (parent), name); pad = gst_element_get_pad (GST_ELEMENT (parent), name);
g_free (name); g_free (name);
} else if (!strcmp (field->name, "peer")) { } else if (!strcmp ((char *) field->name, "peer")) {
peer = xmlNodeGetContent (field); peer = (char *) xmlNodeGetContent (field);
} }
field = field->next; field = field->next;
} }
@ -3148,7 +3148,8 @@ gst_pad_save_thyself (GstObject * object, xmlNodePtr parent)
realpad = GST_REAL_PAD (object); realpad = GST_REAL_PAD (object);
xmlNewChild (parent, NULL, "name", GST_PAD_NAME (realpad)); xmlNewChild (parent, NULL, (guchar *) "name",
(guchar *) GST_PAD_NAME (realpad));
if (GST_RPAD_PEER (realpad) != NULL) { if (GST_RPAD_PEER (realpad) != NULL) {
gchar *content; gchar *content;
@ -3157,10 +3158,10 @@ gst_pad_save_thyself (GstObject * object, xmlNodePtr parent)
/* we just save it off */ /* we just save it off */
content = g_strdup_printf ("%s.%s", content = g_strdup_printf ("%s.%s",
GST_OBJECT_NAME (GST_PAD_PARENT (peer)), GST_PAD_NAME (peer)); GST_OBJECT_NAME (GST_PAD_PARENT (peer)), GST_PAD_NAME (peer));
xmlNewChild (parent, NULL, "peer", content); xmlNewChild (parent, NULL, (guchar *) "peer", (guchar *) content);
g_free (content); g_free (content);
} else } else
xmlNewChild (parent, NULL, "peer", ""); xmlNewChild (parent, NULL, (guchar *) "peer", (guchar *) "");
return parent; return parent;
} }
@ -3184,9 +3185,10 @@ gst_ghost_pad_save_thyself (GstPad * pad, xmlNodePtr parent)
g_return_val_if_fail (GST_IS_GHOST_PAD (pad), NULL); g_return_val_if_fail (GST_IS_GHOST_PAD (pad), NULL);
self = xmlNewChild (parent, NULL, "ghostpad", NULL); self = xmlNewChild (parent, NULL, (guchar *) "ghostpad", NULL);
xmlNewChild (self, NULL, "name", GST_PAD_NAME (pad)); xmlNewChild (self, NULL, (guchar *) "name", (guchar *) GST_PAD_NAME (pad));
xmlNewChild (self, NULL, "parent", GST_OBJECT_NAME (GST_PAD_PARENT (pad))); xmlNewChild (self, NULL, (guchar *) "parent",
(guchar *) GST_OBJECT_NAME (GST_PAD_PARENT (pad)));
/* FIXME FIXME FIXME! */ /* FIXME FIXME FIXME! */

View file

@ -587,7 +587,7 @@ read_string (xmlTextReaderPtr reader, gchar ** write_to)
if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_TEXT) { if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_TEXT) {
if (found) if (found)
return FALSE; return FALSE;
*write_to = g_strdup (xmlTextReaderConstValue (reader)); *write_to = g_strdup ((char *) xmlTextReaderConstValue (reader));
found = TRUE; found = TRUE;
} }
} }
@ -610,7 +610,7 @@ read_uint (xmlTextReaderPtr reader, guint * write_to)
if (found) if (found)
return FALSE; return FALSE;
*write_to = strtol (xmlTextReaderConstValue (reader), &ret, 0); *write_to = strtol ((char *) xmlTextReaderConstValue (reader), &ret, 0);
if (ret != NULL) if (ret != NULL)
return FALSE; return FALSE;
found = TRUE; found = TRUE;
@ -641,7 +641,7 @@ read_enum (xmlTextReaderPtr reader, GType enum_type, guint * write_to)
return FALSE; return FALSE;
value = value =
g_enum_get_value_by_nick (enum_class, g_enum_get_value_by_nick (enum_class,
xmlTextReaderConstValue (reader)); (char *) xmlTextReaderConstValue (reader));
if (value) { if (value) {
*write_to = value->value; *write_to = value->value;
found = TRUE; found = TRUE;
@ -671,7 +671,7 @@ load_pad_template (xmlTextReaderPtr reader)
} }
if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_ELEMENT && if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_ELEMENT &&
xmlTextReaderDepth (reader) == depth + 1) { xmlTextReaderDepth (reader) == depth + 1) {
const gchar *tag = xmlTextReaderConstName (reader); const gchar *tag = (const gchar *) xmlTextReaderConstName (reader);
if (g_str_equal (tag, "nametemplate")) { if (g_str_equal (tag, "nametemplate")) {
read_string (reader, &name); read_string (reader, &name);
@ -723,7 +723,7 @@ load_feature (xmlTextReaderPtr reader)
return feature; return feature;
if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_ELEMENT && if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_ELEMENT &&
xmlTextReaderDepth (reader) == depth + 1) { xmlTextReaderDepth (reader) == depth + 1) {
const gchar *tag = xmlTextReaderConstName (reader); const gchar *tag = (const gchar *) xmlTextReaderConstName (reader);
if (g_str_equal (tag, "name")) if (g_str_equal (tag, "name"))
read_string (reader, &feature->name); read_string (reader, &feature->name);
@ -818,7 +818,7 @@ load_plugin (xmlTextReaderPtr reader)
} }
if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_ELEMENT && if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_ELEMENT &&
xmlTextReaderDepth (reader) == 2) { xmlTextReaderDepth (reader) == 2) {
const gchar *tag = xmlTextReaderConstName (reader); const gchar *tag = (const gchar *) xmlTextReaderConstName (reader);
if (g_str_equal (tag, "name")) { if (g_str_equal (tag, "name")) {
if (!read_string (reader, &plugin->desc.name)) if (!read_string (reader, &plugin->desc.name))
@ -865,7 +865,7 @@ load_paths (xmlTextReaderPtr reader, GstXMLRegistry * registry)
} }
if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_ELEMENT && if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_ELEMENT &&
xmlTextReaderDepth (reader) == 2) { xmlTextReaderDepth (reader) == 2) {
const gchar *tag = xmlTextReaderConstName (reader); const gchar *tag = (const gchar *) xmlTextReaderConstName (reader);
if (g_str_equal (tag, "path")) { if (g_str_equal (tag, "path")) {
gchar *s = NULL; gchar *s = NULL;

View file

@ -67,7 +67,7 @@ static GObjectClass *parent_class;
static guint gst_dpman_signals[LAST_SIGNAL] = { 0 }; static guint gst_dpman_signals[LAST_SIGNAL] = { 0 };
void void
_gst_dpman_initialize () _gst_dpman_initialize (void)
{ {
if (_gst_dpman_init_done) if (_gst_dpman_init_done)
return; return;

View file

@ -98,7 +98,7 @@ gst_unitconv_init (GstUnitConvert * unitconv)
} }
GstUnitConvert * GstUnitConvert *
gst_unitconv_new () gst_unitconv_new (void)
{ {
GstUnitConvert *unitconv; GstUnitConvert *unitconv;
@ -194,10 +194,10 @@ gst_unitconv_unit_spec (gchar * unit_name)
{ {
GstUnit *unit; GstUnit *unit;
g_return_val_if_fail (unit_name != NULL, FALSE); g_return_val_if_fail (unit_name != NULL, NULL);
unit = g_hash_table_lookup (_gst_units, unit_name); unit = g_hash_table_lookup (_gst_units, unit_name);
g_return_val_if_fail (unit != NULL, FALSE); g_return_val_if_fail (unit != NULL, NULL);
return unit->unit_spec; return unit->unit_spec;
} }

View file

@ -423,7 +423,7 @@ gst_dp_buffer_from_header (guint header_length, const guint8 * header)
GstBuffer *buffer; GstBuffer *buffer;
g_return_val_if_fail (GST_DP_HEADER_PAYLOAD_TYPE (header) == g_return_val_if_fail (GST_DP_HEADER_PAYLOAD_TYPE (header) ==
GST_DP_PAYLOAD_BUFFER, FALSE); GST_DP_PAYLOAD_BUFFER, NULL);
buffer = buffer =
gst_buffer_new_and_alloc ((guint) GST_DP_HEADER_PAYLOAD_LENGTH (header)); gst_buffer_new_and_alloc ((guint) GST_DP_HEADER_PAYLOAD_LENGTH (header));
GST_BUFFER_TIMESTAMP (buffer) = GST_DP_HEADER_TIMESTAMP (header); GST_BUFFER_TIMESTAMP (buffer) = GST_DP_HEADER_TIMESTAMP (header);
@ -452,10 +452,10 @@ gst_dp_caps_from_packet (guint header_length, const guint8 * header,
GstCaps *caps; GstCaps *caps;
const gchar *string; const gchar *string;
g_return_val_if_fail (header, FALSE); g_return_val_if_fail (header, NULL);
g_return_val_if_fail (payload, FALSE); g_return_val_if_fail (payload, NULL);
g_return_val_if_fail (GST_DP_HEADER_PAYLOAD_TYPE (header) == g_return_val_if_fail (GST_DP_HEADER_PAYLOAD_TYPE (header) ==
GST_DP_PAYLOAD_CAPS, FALSE); GST_DP_PAYLOAD_CAPS, NULL);
string = payload; string = payload;
caps = gst_caps_from_string (string); caps = gst_caps_from_string (string);
@ -479,14 +479,14 @@ gst_dp_event_from_packet (guint header_length, const guint8 * header,
GstEvent *event = NULL; GstEvent *event = NULL;
GstEventType type; GstEventType type;
g_return_val_if_fail (header, FALSE); g_return_val_if_fail (header, NULL);
/* payload can be NULL, e.g. for an EOS event */ /* payload can be NULL, e.g. for an EOS event */
type = GST_DP_HEADER_PAYLOAD_TYPE (header) - GST_DP_PAYLOAD_EVENT_NONE; type = GST_DP_HEADER_PAYLOAD_TYPE (header) - GST_DP_PAYLOAD_EVENT_NONE;
switch (type) { switch (type) {
case GST_EVENT_UNKNOWN: case GST_EVENT_UNKNOWN:
g_warning ("Unknown event, ignoring"); g_warning ("Unknown event, ignoring");
return FALSE; return NULL;
case GST_EVENT_EOS: case GST_EVENT_EOS:
case GST_EVENT_FLUSH: case GST_EVENT_FLUSH:
case GST_EVENT_EMPTY: case GST_EVENT_EMPTY:
@ -533,10 +533,10 @@ gst_dp_event_from_packet (guint header_length, const guint8 * header,
case GST_EVENT_NAVIGATION: case GST_EVENT_NAVIGATION:
case GST_EVENT_TAG: case GST_EVENT_TAG:
g_warning ("Unhandled event type %d, ignoring", GST_EVENT_TYPE (event)); g_warning ("Unhandled event type %d, ignoring", GST_EVENT_TYPE (event));
return FALSE; return NULL;
default: default:
g_warning ("Unknown event type %d, ignoring", GST_EVENT_TYPE (event)); g_warning ("Unknown event type %d, ignoring", GST_EVENT_TYPE (event));
return FALSE; return NULL;
} }
return event; return event;