From a930b36adc21a938e457666b86f8f3e11c7996fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 29 Jan 2009 15:56:08 +0100 Subject: [PATCH] Improve EOS logic to check all pads when pulling a packet returned EOS This makes sure that we finish all pads that are at EOS now instead of just finishing one and returning to this point over and over again. --- gst/mxf/mxfdemux.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index eac597f..63cd1ac 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -2313,11 +2313,10 @@ gst_mxf_demux_pull_and_handle_klv_packet (GstMXFDemux * demux) gst_mxf_demux_find_essence_element (demux, p->current_essence_track, &position, FALSE); if (offset == -1) { - GST_ERROR_OBJECT (demux, - "Failed to find offset for late essence track"); + GST_ERROR_OBJECT (demux, "Failed to find offset for essence track"); p->eos = TRUE; gst_pad_push_event (GST_PAD_CAST (p), gst_event_new_eos ()); - goto beach; + continue; } demux->offset = offset + demux->run_in; -- 2.7.4