hlsdemux: Don't output pending data after error
If the last_ret status is not OK, skip output of any pending PCR scan buffer, similarly to how the pending decryption buffer is handled above.
This commit is contained in:
parent
07f49f15b1
commit
35c82fee32
@ -871,7 +871,6 @@ gst_hls_demux_finish_fragment (GstAdaptiveDemux * demux,
|
|||||||
hls_stream->pending_decrypted_buffer, TRUE);
|
hls_stream->pending_decrypted_buffer, TRUE);
|
||||||
hls_stream->pending_decrypted_buffer = NULL;
|
hls_stream->pending_decrypted_buffer = NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (ret == GST_FLOW_OK || ret == GST_FLOW_NOT_LINKED) {
|
if (ret == GST_FLOW_OK || ret == GST_FLOW_NOT_LINKED) {
|
||||||
if (hls_stream->pending_pcr_buffer) {
|
if (hls_stream->pending_pcr_buffer) {
|
||||||
@ -886,6 +885,7 @@ gst_hls_demux_finish_fragment (GstAdaptiveDemux * demux,
|
|||||||
GST_TIME_ARGS (hls_stream->tsreader.first_pcr),
|
GST_TIME_ARGS (hls_stream->tsreader.first_pcr),
|
||||||
GST_TIME_ARGS (hls_stream->tsreader.last_pcr));
|
GST_TIME_ARGS (hls_stream->tsreader.last_pcr));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gst_hls_demux_stream_clear_pending_data (hls_stream);
|
gst_hls_demux_stream_clear_pending_data (hls_stream);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user