1.1 --- a/gst-gmyth/nuvdemux/gstnuvdemux.c Wed May 30 14:46:18 2007 +0100
1.2 +++ b/gst-gmyth/nuvdemux/gstnuvdemux.c Fri Jun 01 15:01:43 2007 +0100
1.3 @@ -1557,7 +1557,6 @@
1.4 nuv = GST_NUV_DEMUX (gst_pad_get_parent (pad));
1.5
1.6 switch (GST_EVENT_TYPE (event)) {
1.7 - #if 0
1.8 case GST_EVENT_NEWSEGMENT:
1.9 {
1.10 gboolean update;
1.11 @@ -1589,12 +1588,17 @@
1.12 }
1.13 break;
1.14 }
1.15 - #endif
1.16 - case GST_EVENT_FLUSH_START:
1.17 + case GST_EVENT_CUSTOM_DOWNSTREAM:
1.18 {
1.19 + /*
1.20 nuv->priv->new_file = TRUE;
1.21 nuv->priv->state = GST_NUV_DEMUX_START;
1.22 nuv->priv->offset = 0;
1.23 + */
1.24 + GST_PAD_STREAM_LOCK (pad);
1.25 + gst_nuv_demux_reset( nuv );
1.26 + GST_PAD_STREAM_UNLOCK (pad);
1.27 +
1.28 res = gst_pad_event_default (pad, event);
1.29 break;
1.30 }