const char *
codec_get_title(AVCodec *self)
{
- static char codec_title[TVH_TITLE_LEN];
+ static char __thread codec_title[TVH_TITLE_LEN];
memset(codec_title, 0, sizeof(codec_title));
if (
const char *
tvh_codec_profile_get_title(TVHCodecProfile *self)
{
- static char profile_title[TVH_TITLE_LEN];
+ static char __thread profile_title[TVH_TITLE_LEN];
memset(profile_title, 0, sizeof(profile_title));
- if (
- str_snprintf(profile_title, sizeof(profile_title),
+ if (str_snprintf(profile_title, sizeof(profile_title),
(self->description && strcmp(self->description, "")) ? "%s (%s)" : "%s%s",
- self->name, self->description ? self->description : "")
- ) {
+ self->name, self->description ? self->description : "")) {
return NULL;
}
return profile_title;
void
tvh_codec_profile_remove(TVHCodecProfile *self, int delete)
{
- static char uuid[UUID_HEX_SIZE];
+ char uuid[UUID_HEX_SIZE];
memset(uuid, 0, sizeof(uuid));
idnode_save_check(&self->idnode, delete);
htsmsg_t *list = NULL, *map = NULL;
const uint64_t *channel_layouts = self->channel_layouts;
uint64_t l = 0;
- static char l_buf[16];
+ char l_buf[16];
int i;
if (channel_layouts && (list = htsmsg_create_list())) {
{
htsmsg_t *list = htsmsg_create_list();
lang_code_t *lc = (lang_code_t *)lang_codes;
- static char lc_buf[128];
+ char lc_buf[128];
while (lc->code2b) {
htsmsg_t *map = NULL;
codec_profile_class_save(idnode_t *idnode, char *filename, size_t fsize)
{
htsmsg_t *map = htsmsg_create_map();
- static char uuid[UUID_HEX_SIZE];
+ char uuid[UUID_HEX_SIZE];
idnode_save(idnode, map);
if (filename)
snprintf(filename, fsize, "codec/%s", idnode_uuid_as_str(idnode, uuid));
static int
tvh_audio_context_open_filters(TVHContext *self, AVDictionary **opts)
{
- static char source_args[128];
- static char filters[16];
+ char source_args[128];
+ char filters[16];
int resample = (self->iavctx->sample_rate != self->oavctx->sample_rate);
// source args
static int
tvh_video_context_open_filters(TVHContext *self, AVDictionary **opts)
{
- static char source_args[128];
+ char source_args[128];
char *filters = NULL;
// source args