fixes for typos in messages

This commit is contained in:
Ben Roeder
2018-09-11 12:51:21 +01:00
parent 1df22e8177
commit e4111c76b8
11 changed files with 13 additions and 13 deletions

View File

@@ -309,7 +309,7 @@ void audio_frame2::resample(audio_frame2_resampler & resampler_state, int new_sa
/// @todo
/// speex supports also floats so there could be possibility also to add support for more bps
if (bps != 2) {
throw logic_error("Only 16 bits per sample are currently for resamling supported!");
throw logic_error("Only 16 bits per sample are currently for resampling supported!");
}
std::vector<channel> new_channels(channels.size());

View File

@@ -99,7 +99,7 @@ static int init(struct module *parent, const char *cfg, void **state)
}
if (denom > n) {
log_msg(LOG_LEVEL_ERROR, "Currently, numerator has to be greater "
"(or equal, which, however, has a little use) then denominator.\n");
"(or equal, which, however, has a little use) than denominator.\n");
return -1;
}
} else {

View File

@@ -86,7 +86,7 @@ static void mirror_line_UYVY(unsigned char *dst, const unsigned char *src, int l
static struct video_frame *filter(void *, struct video_frame *in)
{
if (in->color_spec != UYVY) {
log_msg(LOG_LEVEL_WARNING, "Only supporte colorspace for mirror is currently UYVY!\n");
log_msg(LOG_LEVEL_WARNING, "Only supported colorspace for mirror is currently UYVY!\n");
return in;
}

View File

@@ -210,7 +210,7 @@ static void process_messages(struct exporter *s) {
} else {
enable_export(s);
}
log_msg(LOG_LEVEL_NOTICE, "Exporing: %s\n", s->exporting ? "ON" : "OFF");
log_msg(LOG_LEVEL_NOTICE, "Exporting: %s\n", s->exporting ? "ON" : "OFF");
r = new_response(RESPONSE_OK, NULL);
} else if (strcmp(msg->text, "status") == 0) {
r = new_response(RESPONSE_OK, s->exporting ? "true" : "false");

View File

@@ -546,7 +546,7 @@ static bool parse_fmt(int argc, char **argv, struct cmdline_parameters *parsed)
parsed->host_count += 1;
} else {
if(strlen(argv[i]) != 2) {
fprintf(stderr, "Error: invalild option '%s'\n", argv[i]);
fprintf(stderr, "Error: invalid option '%s'\n", argv[i]);
exit(EXIT_FAIL_USAGE);
}
@@ -605,7 +605,7 @@ static bool parse_fmt(int argc, char **argv, struct cmdline_parameters *parsed)
parsed->hosts[host_idx].force_ip_version = 6;
break;
default:
fprintf(stderr, "Error: invalild option '%s'\n", argv[i]);
fprintf(stderr, "Error: invalid option '%s'\n", argv[i]);
exit(EXIT_FAIL_USAGE);
}
i += 1;

View File

@@ -143,7 +143,7 @@ static struct response *send_message_common(struct module *root, const char *con
pthread_mutex_unlock(&receiver->msg_queue_lock);
if (size >= MAX_MESSAGES) {
struct message *m = (struct message *) simple_linked_list_pop(receiver->msg_queue);
free_message(m, new_response(RESPONSE_INT_SERV_ERR, "Too much unprocessed messages"));
free_message(m, new_response(RESPONSE_INT_SERV_ERR, "Too many unprocessed messages"));
printf("Dropping some messages for %s - queue full.\n", const_path);
}
pthread_mutex_lock(&receiver->msg_queue_lock);

View File

@@ -156,7 +156,7 @@ int audio_buffer_read(struct audio_buffer *buf, char *out, int max_len)
char *tmp = alloca(len_drop);
ring_buffer_read(buf->ring, tmp, len_drop);
buf->last_overrun = 0;
log_msg(LOG_LEVEL_VERBOSE, "Droped audio samples: req latency %d remaining %d dropped %d!\n", requested_latency_bytes, suggested_latency_bytes, remaining_bytes, len_drop);
log_msg(LOG_LEVEL_VERBOSE, "Dropped audio samples: req latency %d remaining %d dropped %d!\n", requested_latency_bytes, suggested_latency_bytes, remaining_bytes, len_drop);
} else {
buf->last_overrun += 1;
}

View File

@@ -214,7 +214,7 @@ class resource_manager_t {
obj_map_t::iterator it = m_objs.find(item_name);
if(it == m_objs.end()) {
// create
throw logic_error("Not such object.");
throw logic_error("No such object.");
} else {
it->second.second -= 1;
if(it->second.second == 0) { // ref count == 0

View File

@@ -298,7 +298,7 @@ static struct video_frame *vidcap_bitflow_grab(void *state, struct audio_frame *
return NULL;
}
case kCIEaqAbortedErr:
log_msg(LOG_LEVEL_ERROR, "CiGetOldestNotDeliveredFrame: acqistion aborted\n");
log_msg(LOG_LEVEL_ERROR, "CiGetOldestNotDeliveredFrame: acquistion aborted\n");
return NULL;
case kCIEdataHWerr:
log_msg(LOG_LEVEL_ERROR, "CiWaitNextUndeliveredFrame gave '%s'\n",CiErrStr(circ));
@@ -323,7 +323,7 @@ static struct video_frame *vidcap_bitflow_grab(void *state, struct audio_frame *
log_msg(LOG_LEVEL_ERROR, "CiGetUndeliveredCount error\n");
return NULL;
case kCIEaqAbortedErr:
log_msg(LOG_LEVEL_ERROR, "CiGetOldestNotDeliveredFrame: acqistion aborted\n");
log_msg(LOG_LEVEL_ERROR, "CiGetOldestNotDeliveredFrame: acquistion aborted\n");
return NULL;
default:
log_msg(LOG_LEVEL_ERROR, "CiGetOldestNotDeliveredFrame gave '%s'\n",CiErrStr(circ));

View File

@@ -424,7 +424,7 @@ static bool setup_audio(struct vidcap_bluefish444_state *s, unsigned int flags)
s->objHancDecode.audio_ch_required_mask |= MONO_CHANNEL_1;
break;
default:
cerr << "To much outpt channels requested." << endl;
cerr << "Too many output channels requested." << endl;
return false;
}
s->objHancDecode.type_of_sample_required = (AUDIO_CHANNEL_16BIT|AUDIO_CHANNEL_LITTLEENDIAN);

View File

@@ -980,7 +980,7 @@ vidcap_decklink_init(const struct vidcap_params *params, void **state)
if (s->passthrough) {
result = deckLinkConfiguration->SetInt(bmdDeckLinkConfigCapturePassThroughMode, s->passthrough);
if(result != S_OK) {
log_msg(LOG_LEVEL_ERROR, "[DeckLink capture] Unable to set pasthroug mode.\n");
log_msg(LOG_LEVEL_ERROR, "[DeckLink capture] Unable to set passthrough mode.\n");
goto error;
}
}