diff -r 365a09aee64b -r ffc7212656a5 gst-gmyth/nuvdemux/gstnuvdemux.c --- a/gst-gmyth/nuvdemux/gstnuvdemux.c Wed May 30 14:46:18 2007 +0100 +++ b/gst-gmyth/nuvdemux/gstnuvdemux.c Fri Jun 01 19:41:45 2007 +0100 @@ -1557,7 +1557,6 @@ nuv = GST_NUV_DEMUX (gst_pad_get_parent (pad)); switch (GST_EVENT_TYPE (event)) { - #if 0 case GST_EVENT_NEWSEGMENT: { gboolean update; @@ -1589,12 +1588,17 @@ } break; } - #endif - case GST_EVENT_FLUSH_START: + case GST_EVENT_CUSTOM_DOWNSTREAM: { + /* nuv->priv->new_file = TRUE; nuv->priv->state = GST_NUV_DEMUX_START; nuv->priv->offset = 0; + */ + GST_PAD_STREAM_LOCK (pad); + gst_nuv_demux_reset( nuv ); + GST_PAD_STREAM_UNLOCK (pad); + res = gst_pad_event_default (pad, event); break; }