1.1 --- a/gst-plugins-mythtv/src/gstmythtvsrc.c Thu Mar 08 23:43:33 2007 +0000
1.2 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c Fri Mar 23 22:57:05 2007 +0000
1.3 @@ -408,11 +408,11 @@
1.4 GST_DEBUG_OBJECT (src, "Create: buffer_remain: %d, buffer_size = %d.",
1.5 (gint) src->buffer_remain, src->bytes_queue->len);
1.6
1.7 +program_chain_changed:
1.8 /* just get from the byte array, no network effort... */
1.9 if ((src->buffer_remain = src->bytes_queue->len) < MAX_READ_SIZE) {
1.10 GByteArray *buffer;
1.11
1.12 -program_chain_changed:
1.13 buffer = NULL;
1.14 guint buffer_size_inter = (INTERNAL_BUFFER_SIZE - src->buffer_remain);
1.15
1.16 @@ -430,7 +430,7 @@
1.17 buffer = NULL;
1.18 }
1.19
1.20 - if (src->live_tv)
1.21 + if (src->live_tv || ( read == GMYTHTV_FILE_TRANSFER_NEXT_PROG_CHAIN ))
1.22 goto change_progchain;
1.23 else
1.24 goto read_error;
1.25 @@ -444,7 +444,7 @@
1.26 if (!src->live_tv)
1.27 goto done;
1.28 else
1.29 - goto change_progchain;
1.30 + goto program_chain_changed;
1.31 }
1.32
1.33 if (G_UNLIKELY (src->update_prog_chain))
1.34 @@ -549,6 +549,7 @@
1.35 src->uri_name));
1.36
1.37 /*
1.38 + TODO: need to send a new segment event to NUVDemux?
1.39 gst_pad_push_event (GST_BASE_SRC_PAD (GST_BASE_SRC (psrc)),
1.40 gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_TIME, 0, -1, 0));
1.41 */