mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-08 12:51:21 +00:00
dashdemux: do not try to access buffer after losing the ref
For obvious reasons
This commit is contained in:
parent
be54766975
commit
5b1eda95eb
1 changed files with 1 additions and 2 deletions
|
@ -2308,6 +2308,7 @@ gst_dash_demux_get_next_fragment_for_stream (GstDashDemux * demux,
|
|||
}
|
||||
}
|
||||
|
||||
*size_buffer += gst_buffer_get_size (buffer);
|
||||
if (catch_up) {
|
||||
GstFlowReturn ret;
|
||||
|
||||
|
@ -2319,8 +2320,6 @@ gst_dash_demux_get_next_fragment_for_stream (GstDashDemux * demux,
|
|||
gst_dash_demux_stream_push_data (stream, buffer);
|
||||
stream->has_data_queued = TRUE;
|
||||
}
|
||||
|
||||
*size_buffer += gst_buffer_get_size (buffer);
|
||||
} else {
|
||||
GST_WARNING_OBJECT (demux, "Failed to download fragment for stream %p %d",
|
||||
stream, stream->index);
|
||||
|
|
Loading…
Reference in a new issue