gst/mpegdemux/gstmpegtsdemux.c: No need to reclaculate flush in this case.

Original commit message from CVS:
patch by: Josep Torra
* gst/mpegdemux/gstmpegtsdemux.c:
No need to reclaculate flush in this case.
Fixes some bad decode errors introduced.
This commit is contained in:
Zaheer Abbas Merali 2008-11-06 11:31:03 +00:00
parent 32a383f8b4
commit 5e47fd7616
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2008-11-06 Zaheer Abbas Merali <zaheerabbas at merali dot org>
patch by: Josep Torra
* gst/mpegdemux/gstmpegtsdemux.c:
No need to reclaculate flush in this case.
Fixes some bad decode errors introduced.
2008-11-06 Zaheer Abbas Merali <zaheerabbas at merali dot org> 2008-11-06 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* gst/mpegdemux/gstmpegtsdemux.c: * gst/mpegdemux/gstmpegtsdemux.c:

View file

@ -664,6 +664,7 @@ gst_fluts_demux_fill_stream (GstFluTSStream * stream, guint8 id,
stream->stream_type = stream_type; stream->stream_type = stream_type;
stream->id = id; stream->id = id;
GST_DEBUG ("creating new pad %s", name);
stream->pad = gst_pad_new_from_template (template, name); stream->pad = gst_pad_new_from_template (template, name);
gst_pad_use_fixed_caps (stream->pad); gst_pad_use_fixed_caps (stream->pad);
gst_pad_set_caps (stream->pad, caps); gst_pad_set_caps (stream->pad, caps);
@ -2550,7 +2551,6 @@ gst_fluts_demux_chain (GstPad * pad, GstBuffer * buffer)
for (i = 0; i < sync_count; i++) { for (i = 0; i < sync_count; i++) {
ret = gst_fluts_demux_parse_transport_packet (demux, demux->sync_lut[i]); ret = gst_fluts_demux_parse_transport_packet (demux, demux->sync_lut[i]);
if (G_UNLIKELY (ret == GST_FLOW_LOST_SYNC)) { if (G_UNLIKELY (ret == GST_FLOW_LOST_SYNC)) {
flush = demux->sync_lut[i] - data + 1;
ret = GST_FLOW_OK; ret = GST_FLOW_OK;
continue; continue;
} }