mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 03:08:39 +00:00
video_capture: fixed a typo in macro name
This commit is contained in:
@@ -167,7 +167,7 @@ int initialize_video_capture(struct module *parent,
|
||||
"Unable to start video capture device %s\n",
|
||||
vidcap_params_get_driver(param));
|
||||
break;
|
||||
case VIDCAP_INIT_AUDIO_NOT_SUPPOTED:
|
||||
case VIDCAP_INIT_AUDIO_NOT_SUPPORTED:
|
||||
log_msg(LOG_LEVEL_ERROR,
|
||||
"Video capture driver does not support selected embedded/analog/AESEBU audio.\n");
|
||||
break;
|
||||
|
||||
@@ -114,7 +114,7 @@ struct audio_frame;
|
||||
#define VIDCAP_INIT_OK 0 ///< initialization successful
|
||||
#define VIDCAP_INIT_NOERR 1 ///< state not initialized, other action performed (typically help)
|
||||
#define VIDCAP_INIT_FAIL (-1) ///< error ocured
|
||||
#define VIDCAP_INIT_AUDIO_NOT_SUPPOTED (-2) ///< card does not support audio
|
||||
#define VIDCAP_INIT_AUDIO_NOT_SUPPORTED (-2) ///< card does not support audio
|
||||
/// @}
|
||||
|
||||
#define VIDCAP_NO_GENERIC_FPS_INDICATOR NULL
|
||||
|
||||
@@ -788,7 +788,7 @@ static int vidcap_dshow_init(struct vidcap_params *params, void **state) {
|
||||
HRESULT res;
|
||||
|
||||
if (vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) {
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPOTED;
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
s = (struct vidcap_dshow_state *) calloc(1, sizeof(struct vidcap_dshow_state));
|
||||
|
||||
@@ -139,7 +139,7 @@ static float get_fps(struct vidcap_state_bitflow *s) {
|
||||
static int vidcap_bitflow_init(struct vidcap_params *params, void **state)
|
||||
{
|
||||
if (vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) {
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPOTED;
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPORTED;
|
||||
}
|
||||
struct vidcap_state_bitflow *s = (struct vidcap_state_bitflow *) calloc(1, sizeof(struct vidcap_state_bitflow));
|
||||
|
||||
|
||||
@@ -460,7 +460,7 @@ vidcap_deltacast_dvi_init(struct vidcap_params *params, void **state)
|
||||
printf("vidcap_deltacast_dvi_init\n");
|
||||
|
||||
if (vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) {
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPOTED;
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
char *init_fmt = NULL,
|
||||
|
||||
@@ -358,7 +358,7 @@ static int vidcap_dvs_init(struct vidcap_params *params, void **state)
|
||||
} else {
|
||||
if (vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) {
|
||||
free(s);
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPOTED;
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPORTED;
|
||||
}
|
||||
s->grab_audio = FALSE;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ static int capture_state = 0;
|
||||
static int vidcap_null_init(struct vidcap_params *params, void **state)
|
||||
{
|
||||
if (vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) {
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPOTED;
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPORTED;
|
||||
}
|
||||
capture_state = 0;
|
||||
*state = &capture_state;
|
||||
|
||||
@@ -150,7 +150,7 @@ static int vidcap_screen_osx_init(struct vidcap_params *params, void **state)
|
||||
printf("vidcap_screen_init\n");
|
||||
|
||||
if (vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) {
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPOTED;
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
s = (struct vidcap_screen_osx_state *) calloc(1, sizeof(struct vidcap_screen_osx_state));
|
||||
|
||||
@@ -923,7 +923,7 @@ static int parse_params(struct vidcap_params *params, screen_cast_session &sessi
|
||||
static int vidcap_screen_pw_init(struct vidcap_params *params, void **state)
|
||||
{
|
||||
if (vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) {
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPOTED;
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
screen_cast_session &session = *new screen_cast_session();
|
||||
|
||||
@@ -327,7 +327,7 @@ static int vidcap_screen_x11_init(struct vidcap_params *params, void **state)
|
||||
printf("vidcap_screen_init\n");
|
||||
|
||||
if (vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) {
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPOTED;
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
const char *fmt = vidcap_params_get_fmt(params);
|
||||
|
||||
@@ -504,7 +504,7 @@ static int vidcap_v4l2_init(struct vidcap_params *params, void **state)
|
||||
printf("vidcap_v4l2_init\n");
|
||||
|
||||
if (vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) {
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPOTED;
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
const char *cfg = vidcap_params_get_fmt(params);
|
||||
|
||||
@@ -225,7 +225,7 @@ static int vidcap_ximea_parse_params(struct state_vidcap_ximea *s, char *cfg) {
|
||||
static int vidcap_ximea_init(struct vidcap_params *params, void **state)
|
||||
{
|
||||
if (vidcap_params_get_flags(params) & VIDCAP_FLAG_AUDIO_ANY) {
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPOTED;
|
||||
return VIDCAP_INIT_AUDIO_NOT_SUPPORTED;
|
||||
}
|
||||
struct state_vidcap_ximea *s = calloc(1, sizeof(struct state_vidcap_ximea));
|
||||
s->magic = MAGIC;
|
||||
|
||||
Reference in New Issue
Block a user