diff options
author | Thiago Santos <ts.santos@sisa.samsung.com> | 2013-12-13 17:26:10 -0300 |
---|---|---|
committer | Thiago Santos <ts.santos@sisa.samsung.com> | 2013-12-24 17:07:52 -0300 |
commit | 5b1eda95ebd4bfb0d09c893bb5cad24b0a85b2bd (patch) | |
tree | 3990ea71015c3db50858518209e328ddd1dd4d0b /ext | |
parent | be547669759825a3883c562bee4f6c27c4581c7b (diff) |
dashdemux: do not try to access buffer after losing the ref
For obvious reasons
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dash/gstdashdemux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 1f2aba0aa..61723de5b 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -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); |