dashdemux: do not try to access buffer after losing the ref
For obvious reasons
This commit is contained in:
parent
be54766975
commit
5b1eda95eb
@ -2308,6 +2308,7 @@ gst_dash_demux_get_next_fragment_for_stream (GstDashDemux * demux,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*size_buffer += gst_buffer_get_size (buffer);
|
||||||
if (catch_up) {
|
if (catch_up) {
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
|
|
||||||
@ -2319,8 +2320,6 @@ gst_dash_demux_get_next_fragment_for_stream (GstDashDemux * demux,
|
|||||||
gst_dash_demux_stream_push_data (stream, buffer);
|
gst_dash_demux_stream_push_data (stream, buffer);
|
||||||
stream->has_data_queued = TRUE;
|
stream->has_data_queued = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
*size_buffer += gst_buffer_get_size (buffer);
|
|
||||||
} else {
|
} else {
|
||||||
GST_WARNING_OBJECT (demux, "Failed to download fragment for stream %p %d",
|
GST_WARNING_OBJECT (demux, "Failed to download fragment for stream %p %d",
|
||||||
stream, stream->index);
|
stream, stream->index);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user