mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
libobs,plugins: Remove new obs_output_*2 functions
Effectively reverting parts ofd314d47, this commit removes the new functions that got added to remove the flags parameter. Instead, it just marks the parameter as unused and documents this. Having what is effectively an API break just to remove a parameter is a bit overkill. The other parts ofd314d47which cleaned up the usage of the flags parameter are untouched here.
This commit is contained in:
@@ -882,32 +882,38 @@ Functions used by outputs
|
||||
|
||||
---------------------
|
||||
|
||||
.. function:: bool obs_output_can_begin_data_capture2(const obs_output_t *output)
|
||||
.. function:: bool obs_output_can_begin_data_capture(const obs_output_t *output, int flags)
|
||||
|
||||
Determines whether video/audio capture (encoded or raw) is able to
|
||||
start. Call this before initializing any output state to ensure that
|
||||
the output can start.
|
||||
|
||||
:param output: The output
|
||||
:param flags: Reserved. Set this to 0.
|
||||
:return: *true* if data capture can begin
|
||||
|
||||
---------------------
|
||||
|
||||
.. function:: bool obs_output_initialize_encoders2(obs_output_t *output)
|
||||
.. function:: bool obs_output_initialize_encoders(obs_output_t *output, int flags)
|
||||
|
||||
Initializes any encoders/services associated with the output. This
|
||||
must be called for encoded outputs before calling
|
||||
:c:func:`obs_output_begin_data_capture2()`.
|
||||
:c:func:`obs_output_begin_data_capture()`.
|
||||
|
||||
:param output: The output
|
||||
:param flags: Reserved. Set this to 0.
|
||||
:return: *true* if successful, *false* otherwise
|
||||
|
||||
---------------------
|
||||
|
||||
.. function:: bool obs_output_begin_data_capture2(obs_output_t *output)
|
||||
.. function:: bool obs_output_begin_data_capture(obs_output_t *output, int flags)
|
||||
|
||||
Begins data capture from raw media or encoders. This is typically
|
||||
when the output actually activates (starts) internally. Video/audio
|
||||
data will start being sent to the callbacks of the output.
|
||||
|
||||
:param output: The output
|
||||
:param flags: Reserved. Set this to 0.
|
||||
:return: *true* if successful, *false* otherwise. Typically the
|
||||
return value does not need to be checked if
|
||||
:c:func:`obs_output_can_begin_data_capture2()` was
|
||||
|
||||
Reference in New Issue
Block a user