![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|

Go to the source code of this file.
Macros | |
| #define | MOD_NAME "[utils/win] " |
Functions | |
| bool | com_initialize (bool *com_initialized, const char *err_prefix) |
| void | com_uninitialize (bool *com_initialized) |
Definition in file windows.c.
| bool com_initialize | ( | bool * | com_initialized, |
| const char * | err_prefix ) |
| [out] | com_initialize | a pointer to a bool that will be passed to com_uninintialize(). The value should be initialized to false - the current logic can guard only one init/uninit so true is assumed bo be a repeated call. |
| [in] | err_prefix | optional error prefix to be used for eventual error messges (may be NULL) |
| true | if either COM already initalized for this thread or this call initializes COM succesfully |
| false | COM could not have been initialized |
Definition at line 65 of file windows.c.
References LOG_LEVEL_ERROR, LOG_LEVEL_WARNING, log_msg(), and MSG.
Referenced by vidcap_decklink_state::vidcap_decklink_state(), audio_cap_wasapi_init(), audio_cap_wasapi_probe(), audio_play_wasapi_help(), audio_play_wasapi_init(), audio_play_wasapi_probe(), blackmagic_api_version_check(), common_init(), common_preinit(), create_decklink_iterator(), print_decklink_version(), and show_help().

| void com_uninitialize | ( | bool * | com_initialized | ) |
Definition at line 94 of file windows.c.
Referenced by vidcap_decklink_state::~vidcap_decklink_state(), audio_cap_wasapi_probe(), audio_play_wasapi_help(), audio_play_wasapi_init(), audio_play_wasapi_probe(), cleanup(), common_cleanup(), decklink_uninitialize(), print_decklink_version(), and show_help().