Various fixes

This commit is contained in:
Martin Pulec
2015-07-14 17:15:29 +02:00
parent 425672678a
commit cecf08ac97
3 changed files with 2 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ void log_msg(int level, const char *format, ...)
return;
}
#ifdef WIN32
#if 0 // WIN32
if (log_level == LOG_LEVEL_DEBUG) {
char msg[65535];
va_list ap;

View File

@@ -32,7 +32,7 @@ char *export_dir = NULL;
volatile bool should_exit_receiver = false;
volatile int log_level = LOG_LEVEL_INFO;
bool color_term = (strcmp(getenv("TERM"), "xterm") == 0 || strcmp(getenv("TERM"), "xterm-256color") == 0) && isatty(1) && isatty(2);
bool color_term = (getenv("TERM") && (strcmp(getenv("TERM"), "xterm") == 0 || strcmp(getenv("TERM"), "xterm-256color") == 0 || strcmp(getenv("TERM"), "screen") == 0)) && isatty(1) && isatty(2);
bool ldgm_device_gpu = false;

View File

@@ -80,7 +80,6 @@ codec_t get_codec_from_name(const char *name) __attribute__((pure));
const char *get_codec_file_extension(codec_t codec) __attribute__((pure));
decoder_t get_decoder_from_to(codec_t in, codec_t out, bool slow) __attribute__((pure));
uint32_t get_fcc_from_codec(codec_t codec) __attribute__((pure));
int get_aligned_length(int width, codec_t codec) __attribute__((pure));
int get_pf_block_size(codec_t codec) __attribute__((pure));
int vc_get_linesize(unsigned int width, codec_t codec) __attribute__((pure));