mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
rmdemux: Don't use buffer after unreffing
This commit is contained in:
parent
58787102e9
commit
74e717038f
1 changed files with 3 additions and 1 deletions
|
@ -856,6 +856,8 @@ gst_rmdemux_loop (GstPad * pad)
|
|||
}
|
||||
}
|
||||
|
||||
size = gst_buffer_get_size (buffer);
|
||||
|
||||
/* Defer to the chain function */
|
||||
ret = gst_rmdemux_chain (pad, GST_OBJECT_CAST (rmdemux), buffer);
|
||||
if (ret != GST_FLOW_OK) {
|
||||
|
@ -864,7 +866,7 @@ gst_rmdemux_loop (GstPad * pad)
|
|||
goto need_pause;
|
||||
}
|
||||
|
||||
rmdemux->offset += gst_buffer_get_size (buffer);
|
||||
rmdemux->offset += size;
|
||||
|
||||
switch (rmdemux->loop_state) {
|
||||
case RMDEMUX_LOOP_STATE_HEADER:
|
||||
|
|
Loading…
Reference in a new issue