# HG changeset patch # User rosfran # Date 1180623773 -3600 # Node ID a102805611e7aceb3c39bcbaa1fa74e4f8c2b6eb # Parent 64b061775d066d4f69732706723573f059a4ca7a [svn r731] Fixed bug with the program chain changing. diff -r 64b061775d06 -r a102805611e7 gst-gmyth/mythsrc/gstmythtvsrc.c --- a/gst-gmyth/mythsrc/gstmythtvsrc.c Thu May 31 14:31:24 2007 +0100 +++ b/gst-gmyth/mythsrc/gstmythtvsrc.c Thu May 31 16:02:53 2007 +0100 @@ -476,7 +476,11 @@ GST_DEBUG_OBJECT (src, "Update PROGRAM CHAIN!!! buffer_size = %d.", src->bytes_queue->len); gst_pad_push_event (GST_BASE_SRC_PAD (GST_BASE_SRC (psrc)), + gst_event_new_custom(GST_EVENT_CUSTOM_DOWNSTREAM, NULL)); +/* + gst_pad_push_event (GST_BASE_SRC_PAD (GST_BASE_SRC (psrc)), gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_BYTES, 0, -1, 0)); +*/ src->update_prog_chain = FALSE; src->eos = FALSE; diff -r 64b061775d06 -r a102805611e7 gst-gmyth/nuvdemux/gstnuvdemux.c --- a/gst-gmyth/nuvdemux/gstnuvdemux.c Thu May 31 14:31:24 2007 +0100 +++ b/gst-gmyth/nuvdemux/gstnuvdemux.c Thu May 31 16:02:53 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; }