docs: Clarify that data for source/encoder properties can be null

This commit is contained in:
gxalpha
2023-04-21 19:33:22 +02:00
committed by Jim
parent 681093616a
commit f05b719950
2 changed files with 10 additions and 0 deletions

View File

@@ -90,6 +90,11 @@ Encoder Definition Structure (obs_encoder_info)
Gets the property information of this encoder.
:param data: The implementation data associated with this encoder.
This value can be null (e.g., when
:c:func:`obs_get_encoder_properties()` is called on the
encoder type), make sure to handle this gracefully.
(Optional)
:return: The properties of the encoder

View File

@@ -222,6 +222,11 @@ Source Definition Structure (obs_source_info)
obs_properties_t *(*obs_source_info.get_properties2)(void *data, void *type_data)
Gets the property information of this source.
:param data: The implementation data associated with this source.
This value can be null (e.g., when
:c:func:`obs_get_source_properties()` is called on the
source type), make sure to handle this gracefully.
(Optional)