case SMT_NOSTART:
pthread_mutex_lock(&rtsp->rtsp_start_mutex);
- rtsp->rtsp_start_error = transport_nostart2txt(sm->sm_code);
+ rtsp->rtsp_start_error = streaming_code2txt(sm->sm_code);
pthread_cond_signal(&rtsp->rtsp_start_cond);
pthread_mutex_unlock(&rtsp->rtsp_start_mutex);
break;
tvhlog(LOG_INFO, "subscription",
"\"%s\" direct subscription failed -- %s", name,
- transport_nostart2txt(r));
+ streaming_code2txt(r));
return NULL;
}
}
static void transport_data_timeout(void *aux);
-/**
- *
- */
-const char *
-transport_nostart2txt(int code)
-{
- switch(code) {
- }
- return "Unknown error";
-}
-
-
/**
*
*/
if((r = transport_start(t, 0, 0)) == 0)
return t;
tvhlog(LOG_DEBUG, "Transport", "%s: Unable to use \"%s\" -- %s",
- loginfo, transport_nicename(t), transport_nostart2txt(r));
+ loginfo, transport_nicename(t), streaming_code2txt(r));
}
/* Ok, nothing, try again, but supply our weight and thus, try to steal
if(loginfo != NULL)
tvhlog(LOG_NOTICE, "Transport",
"%s: Skipping \"%s\" -- %s",
- loginfo, transport_nicename(t), transport_nostart2txt(r));
+ loginfo, transport_nicename(t), streaming_code2txt(r));
}
if(errorp != NULL)
*errorp = error;
const char *transport_component_nicename(th_stream_t *st);
-const char *transport_nostart2txt(int code);
-
const char *transport_tss2text(int flags);
static inline int transport_tss_is_error(int flags)