1. 11 8月, 2020 1 次提交
  2. 24 7月, 2020 1 次提交
    • R
      UI: Remove OBSContext class and shutdown in run_program · 06321f89
      Richard Stanway 提交于
      The OBSContext never called obs_startup but would always call
      obs_shutdown in its destructor, resulting in shutdown calls even if
      libobs wasn't initialized (eg due to a startup error). Instead, we now
      track if libobs was initialized in OBSApp and call shutdown in the
      destructor.
      06321f89
  3. 20 3月, 2020 1 次提交
  4. 24 6月, 2019 1 次提交
    • J
      clang-format: Apply formatting · f53df7da
      jp9000 提交于
      Code submissions have continually suffered from formatting
      inconsistencies that constantly have to be addressed.  Using
      clang-format simplifies this by making code formatting more consistent,
      and allows automation of the code formatting so that maintainers can
      focus more on the code itself instead of code formatting.
      f53df7da
  5. 04 6月, 2018 1 次提交
    • J
      libobs/callback: Add signal reference counting · 3a05cf6a
      jp9000 提交于
      Adds a simple signal reference counting function
      (signal_handler_connect_ref) that makes it so that signals keep the
      handler around until the all the signal itself is disconnected.  This
      prevents potential crashes where a signal might try to disconnect after
      a handler has already been destroyed (typically in C++ with
      OBSSignalHandler helper objects, where destruction isn't guaranteed to
      be predictable).
      
      This also modifies OBSSignalHandler to use the reference-counting
      connections.
      3a05cf6a
  6. 20 8月, 2015 1 次提交
    • J
      (API Change) libobs: Add global module config path · 2bd8ab7c
      jp9000 提交于
      API Changed:
      ---------------------------
      From:
      - bool obs_startup(const char *locale, profiler_name_store_t *store);
      
      To:
      - bool obs_startup(const char *locale, const char *module_config_path,
      		profiler_name_store_t *store);
      
      Summary:
      ---------------------------
      This allows plugin modules to store plugin-specific configuration data
      (rather than only allowing objects to store configuration data).  This
      will be useful for things like caching data, for example looking up and
      storing ingests from remote (rather than storing locally), or caching
      font data (so it doesn't have to build a font cache each time), among
      other things.
      
      Also adds a module-specific directory for the UI
      2bd8ab7c
  7. 12 8月, 2015 1 次提交
    • P
      (API Change) libobs: Add profile_name_store_t parameter to obs_startup · 44b5afbd
      Palana 提交于
      Due to all the threads in libobs it wouldn't be safe to make that
      parameter reconfigurable after libobs is initialized without adding
      even more synchronization. On the other hand, adding a function to set
      the name store before calling obs_startup would solve the problem of
      passing a name store into libobs, but it can lead to more complicated
      semantics for obs_get_profiler_name_store (e.g., should it always return
      the current name store even if libobs isn't initialized until someone
      calls set_name_store(NULL)? should obs_shutdown call
      set_name_store(NULL)? Passing it as obs_startup parameter avoids
      these (and hopefully other) potential misunderstandings
      44b5afbd
  8. 31 7月, 2015 1 次提交
  9. 07 5月, 2015 4 次提交
  10. 29 10月, 2014 3 次提交
  11. 26 9月, 2014 1 次提交
    • J
      (API Change) Remove pointers from all typedefs · c9df41c1
      jp9000 提交于
      Typedef pointers are unsafe.  If you do:
      typedef struct bla *bla_t;
      then you cannot use it as a constant, such as: const bla_t, because
      that constant will be to the pointer itself rather than to the
      underlying data.  I admit this was a fundamental mistake that must
      be corrected.
      
      All typedefs that were pointer types will now have their pointers
      removed from the type itself, and the pointers will be used when they
      are actually used as variables/parameters/returns instead.
      
      This does not break ABI though, which is pretty nice.
      c9df41c1
  12. 15 6月, 2014 1 次提交
  13. 23 3月, 2014 1 次提交
    • J
      Add source properties window (very preliminary) · d9251f9e
      jp9000 提交于
       - Add a properties window for sources so that you can now actually edit
         the settings for sources.  Also, display the source by itself in the
         window (Note: not working on mac, and possibly not working on linux).
      
         When changing the settings for a source, it will call
         obs_source_update on that source when you have modified any values
         automatically.
      
       - Add a properties 'widget', eventually I want to turn this in to a
         regular nice properties view like you'd see in the designer, but
         right now it just uses a form layout in a QScrollArea with regular
         controls to display the properties.  It's clunky but works for the
         time being.
      
       - Make it so that swap chains and the main graphics subsystem will
         automatically use at least one backbuffer if none was specified
      
       - Fix bug where displays weren't added to the main display array
      
       - Make it so that you can get the properties of a source via the actual
         pointer of a source/encoder/output in addition to being able to look
         up properties via identifier.
      
       - When registering source types, check for required functions (wasn't
         doing it before).  getheight/getwidth should not be optional if it's
         a video source as well.
      
       - Add an RAII OBSObj wrapper to obs.hpp for non-reference-counted
         libobs pointers
      
       - Add an RAII OBSSignal wrapper to obs.hpp for libobs signals to
         automatically disconnect them on destruction
      
       - Move the "scale and center" calculation in window-basic-main.cpp to
         its own function and in its own source file
      
       - Add an 'update' callback to WASAPI audio sources
      d9251f9e
  14. 03 2月, 2014 4 次提交
    • P
      Add wrappers for obs_data_t and obs_data_array_t · 48676447
      Palana 提交于
      48676447
    • J
      Compact/clean up OBSRef class just a bit more · cfa62354
      jp9000 提交于
      Replace a NULL with nullptr and reduce code duplication with the =
      operators
      cfa62354
    • J
      Add a comment and replace some class references · 933549ca
      jp9000 提交于
      Also, removed some unused headers, and moved the constructor/destructor
      functions to the top
      933549ca
    • J
      Improve thread safety in UI code · 6e1dd92f
      jp9000 提交于
      - Implemented better C++ classes for handling scenes/sources/items in
        obs.hpp, allowing them to automatically increment and decrement the
        references of each, as well as assign them to QVariants.
      
      - Because QVariants are now using the C++ classes, remove the pointer
        QVariant wrapper.
      
      - Use the new C++ classes with the QVariant user data of list box items,
        both for the sake of thread safety and to ensure that the data
        referenced is not freed until removed.  NOTE: still might need some
        testing.
      
      - Implemented a source-remove signal from libobs, and start using that
        signal instead of the source-destroy signal for signalling item
        removal.
      6e1dd92f
  15. 23 12月, 2013 1 次提交
  16. 16 12月, 2013 2 次提交
  17. 08 12月, 2013 1 次提交
  18. 07 12月, 2013 1 次提交
  19. 03 12月, 2013 1 次提交
  20. 24 11月, 2013 1 次提交
  21. 23 11月, 2013 2 次提交