mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-15 21:17:00 -04:00
8770453c09a5ded3858ee8aa2c7a11971b2b40fe
If size is 0 after popping data from the front or back, set the start/end points to 0 as well to ensure that any subsequent buffer pushes start from the beginning of the buffer rather than the middle of the buffer. Reduces potential unnecessary operations in that case. Additionally, this fixes a bug with circulebuf_pop_back where if start position was 0, and all the data was popped off the buffer (equal to the capacity), the end position would be equal to the original size. As an example to replicate the bug, push 5, pop 5, then push 10. The start/end points will be invalid. Closes jp9000/obs-studio#954
OBS Studio <https://obsproject.com> =================================== What is OBS Studio? ------------------- OBS Studio is software designed for capturing, compositing, encoding, recording, and streaming video content, efficiently. It's distributed under the GNU General Public License v2 - see the accompanying COPYING file for more details. Quick Links ----------- - Website: https://obsproject.com - Help/Guides: https://github.com/jp9000/obs-studio/wiki - Forums: https://obsproject.com/forum/ - Build Instructions: https://github.com/jp9000/obs-studio/wiki/Install-Instructions - Bug Tracker: https://obsproject.com/mantis/ (Note: The bug tracker is linked to forum accounts. To use the bug tracker, log in to a forum account) Contributing ------------ - If you wish to contribute code to the project, please make sure read the coding and commit guidelines: https://github.com/jp9000/obs-studio/blob/master/CONTRIBUTING.rst - If you wish to contribute translations, do not submit pull requests. Instead, please use Crowdin. For more information read this thread: https://obsproject.com/forum/threads/how-to-contribute-translations-for-obs.16327/ - Other ways to contribute are by helping people out with support on our forums or in our community chat. Please limit support to topics you fully understand -- bad advice is worse than no advice. When it comes to something that you don't fully know or understand, please defer to the official help or official channels.
Description
Languages
C
53.3%
C++
35.5%
CMake
3.5%
Swift
3%
Objective-C
2.7%
Other
1.8%