libobs: Add function to get encoder object's defaults

Rather than relying on the encoder's type identifier, additionally allow
the ability to get defaults via an encoder object.
This commit is contained in:
jp9000
2018-07-20 01:49:32 -07:00
parent 2f49bf0463
commit 621c519cc5
3 changed files with 10 additions and 0 deletions

View File

@@ -407,6 +407,7 @@ General Encoder Functions
---------------------
.. function:: obs_data_t *obs_encoder_defaults(const char *id)
obs_data_t *obs_encoder_get_defaults(const obs_encoder_t *encoder)
:return: An incremented reference to the encoder's default settings