return ret;
}
-/**
- *
- */
-static void
-dvr_thread_backlog_free(struct streaming_message_queue *backlog)
-{
- streaming_message_t *sm;
- while ((sm = TAILQ_FIRST(backlog)) != NULL) {
- TAILQ_REMOVE(backlog, sm, sm_link);
- streaming_msg_free(sm);
- }
-}
-
/**
*
*/
continue;
} else {
if (TAILQ_FIRST(&backlog))
- dvr_thread_backlog_free(&backlog);
+ streaming_queue_clear(&backlog);
epg_running = 1;
}
} else {
streaming_code2txt(sm->sm_code));
fin:
- dvr_thread_backlog_free(&backlog);
+ streaming_queue_clear(&backlog);
dvr_thread_epilog(de, postproc);
start_time = 0;
started = 0;
}
pthread_mutex_unlock(&sq->sq_mutex);
- dvr_thread_backlog_free(&backlog);
+ streaming_queue_clear(&backlog);
if (prch->prch_muxer)
dvr_thread_epilog(de, postproc);