mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
basesink: fix buffer leaks if preroll failed
buffer is not unreferened if preroll failed :Detailed Notes: - Problem : video freeze when switching from pause to 1/2-FF repeatedly - RootCause : buffer leaks in basesink - Solution : unref the buffer if prerolled failed :Testing Preformed: How to Test : pause -> 1/2 FF -> resume -> pause -> 1/2 FF ... https://bugzilla.gnome.org/show_bug.cgi?id=784932
This commit is contained in:
parent
cfe59c285c
commit
5bd4603ed3
1 changed files with 1 additions and 0 deletions
|
@ -3657,6 +3657,7 @@ dropped:
|
|||
preroll_failed:
|
||||
{
|
||||
GST_DEBUG_OBJECT (basesink, "preroll failed: %s", gst_flow_get_name (ret));
|
||||
gst_mini_object_unref (GST_MINI_OBJECT_CAST (obj));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue