+2007-10-23 Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst-libs/gst/tag/gsttagdemux.c:
+ Don't abort with an assertion if we receive a seek event with
+ a start type of NONE (see launchpad bug #155878).
+
2007-10-22 Wim Taymans <wim.taymans@gmail.com>
* sys/ximage/ximagesink.c: (gst_ximagesink_event_thread),
static gboolean
gst_tag_demux_srcpad_event (GstPad * pad, GstEvent * event)
{
+ GstTagDemux *tagdemux;
gboolean res = FALSE;
- GstTagDemux *tagdemux = GST_TAG_DEMUX (GST_PAD_PARENT (pad));
+
+ tagdemux = GST_TAG_DEMUX (gst_pad_get_parent (pad));
/* Handle SEEK events, with adjusted byte offsets and sizes. */
cur = 0;
cur -= tagdemux->priv->strip_end;
break;
+ case GST_SEEK_TYPE_NONE:
default:
- g_assert_not_reached ();
break;
}
switch (stop_type) {
stop = 0;
stop -= tagdemux->priv->strip_end;
break;
+ case GST_SEEK_TYPE_NONE:
default:
break;
}
break;
}
default:
+ /* FIXME: shouldn't we pass unknown and unhandled events upstream? */
break;
}
+ gst_object_unref (tagdemux);
gst_event_unref (event);
return res;
}