mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
hlsdemux: Try to find type at the end of a fragment
hlsdemux tries to find type if given buffer size is large enought to find type (currently the threshold is 2KB), or EOS in some cases. However, since there can be small byte fragments such as WebVTT, demux should try to find type at the end of a fragment https://bugzilla.gnome.org/show_bug.cgi?id=779011
This commit is contained in:
parent
a5e540bf55
commit
3c5eae63c0
1 changed files with 7 additions and 0 deletions
|
@ -928,6 +928,13 @@ gst_hls_demux_finish_fragment (GstAdaptiveDemux * demux,
|
|||
}
|
||||
|
||||
if (ret == GST_FLOW_OK || ret == GST_FLOW_NOT_LINKED) {
|
||||
if (G_UNLIKELY (hls_stream->pending_typefind_buffer)) {
|
||||
GstBuffer *buf = hls_stream->pending_typefind_buffer;
|
||||
hls_stream->pending_typefind_buffer = NULL;
|
||||
|
||||
gst_hls_demux_handle_buffer (demux, stream, buf, TRUE);
|
||||
}
|
||||
|
||||
if (hls_stream->pending_pcr_buffer) {
|
||||
GstBuffer *buf = hls_stream->pending_pcr_buffer;
|
||||
hls_stream->pending_pcr_buffer = NULL;
|
||||
|
|
Loading…
Reference in a new issue