[svn r731] Fixed bug with the program chain changing.
1.1 --- a/gst-gmyth/mythsrc/gstmythtvsrc.c Thu May 31 14:31:24 2007 +0100
1.2 +++ b/gst-gmyth/mythsrc/gstmythtvsrc.c Thu May 31 16:02:53 2007 +0100
1.3 @@ -476,7 +476,11 @@
1.4 GST_DEBUG_OBJECT (src, "Update PROGRAM CHAIN!!! buffer_size = %d.",
1.5 src->bytes_queue->len);
1.6 gst_pad_push_event (GST_BASE_SRC_PAD (GST_BASE_SRC (psrc)),
1.7 + gst_event_new_custom(GST_EVENT_CUSTOM_DOWNSTREAM, NULL));
1.8 +/*
1.9 + gst_pad_push_event (GST_BASE_SRC_PAD (GST_BASE_SRC (psrc)),
1.10 gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_BYTES, 0, -1, 0));
1.11 +*/
1.12 src->update_prog_chain = FALSE;
1.13 src->eos = FALSE;
1.14
2.1 --- a/gst-gmyth/nuvdemux/gstnuvdemux.c Thu May 31 14:31:24 2007 +0100
2.2 +++ b/gst-gmyth/nuvdemux/gstnuvdemux.c Thu May 31 16:02:53 2007 +0100
2.3 @@ -1557,7 +1557,6 @@
2.4 nuv = GST_NUV_DEMUX (gst_pad_get_parent (pad));
2.5
2.6 switch (GST_EVENT_TYPE (event)) {
2.7 - #if 0
2.8 case GST_EVENT_NEWSEGMENT:
2.9 {
2.10 gboolean update;
2.11 @@ -1589,12 +1588,17 @@
2.12 }
2.13 break;
2.14 }
2.15 - #endif
2.16 - case GST_EVENT_FLUSH_START:
2.17 + case GST_EVENT_CUSTOM_DOWNSTREAM:
2.18 {
2.19 + /*
2.20 nuv->priv->new_file = TRUE;
2.21 nuv->priv->state = GST_NUV_DEMUX_START;
2.22 nuv->priv->offset = 0;
2.23 + */
2.24 + GST_PAD_STREAM_LOCK (pad);
2.25 + gst_nuv_demux_reset( nuv );
2.26 + GST_PAD_STREAM_UNLOCK (pad);
2.27 +
2.28 res = gst_pad_event_default (pad, event);
2.29 break;
2.30 }