"name": "pass",
"default": 1
},
- {,
+ {
"comment": "Matroska",
"class": "profile-matroska",
"name": "matroska"
},
- {,
+ {
"comment": "HTSP Default Stream Settings",
"class": "profile-htsp",
"name": "htsp"
/* Assign the default profile if config files are corrupted */
if (!profile_default) {
pro = profile_find_by_name2("pass", NULL, 1);
- assert(pro);
+ if (pro == NULL)
+ tvhabort(LS_PROFILE, "no default streaming profile! reinstall data files");
profile_default = pro;
}
}
#define tvhnotice(...) tvhlog(LOG_NOTICE, ##__VA_ARGS__)
#define tvherror(...) tvhlog(LOG_ERR, ##__VA_ARGS__)
#define tvhalert(...) tvhlog(LOG_ALERT, ##__VA_ARGS__)
+#define tvhabort(...) do { \
+ tvhlog(LOG_ALERT, ##__VA_ARGS__); \
+ tvh_safe_usleep(2000000); \
+ abort(); \
+} while (0)
void tvhlog_backtrace_printf(const char *fmt, ...);