Get more diagnostic messages when a TuneBlade-induced error occurs.

This commit is contained in:
Mike Brady
2018-11-13 11:00:05 +00:00
parent 501e349466
commit 67083665ad
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -2777,6 +2777,7 @@ int player_stop(rtsp_conn_info *conn) {
if (conn->player_thread) {
debug(2, "player_thread cancel...");
pthread_cancel(*conn->player_thread);
debug(2, "player_thread join...");
pthread_join(*conn->player_thread, NULL);
debug(2, "player_thread joined.");
free(conn->player_thread);
+4 -2
View File
@@ -2079,9 +2079,11 @@ static void *rtsp_conversation_thread_func(void *pconn) {
if (conn->stop == 0) {
int err = msg_write_response(conn->fd, resp);
if (err) {
int odv = debuglev;
debuglev = 3;
debug(1,"A communication error was detected. Closing the play session.");
conn->stop = 1;
pthread_cancel(conn->thread);
player_stop(conn);
debuglev = odv;
}
}
pthread_cleanup_pop(1);