jp9000 8770453c09 libobs/util: Make minor optimization to circlebuf pops
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
2017-06-27 21:25:00 -07:00
2017-01-30 16:05:25 -08:00
2017-04-23 16:12:12 +02:00
2015-07-11 09:10:27 -07:00
2017-04-07 22:33:48 -07:00

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
No description provided
Readme 351 MiB
Languages
C 53.3%
C++ 35.5%
CMake 3.5%
Swift 3%
Objective-C 2.7%
Other 1.8%