Notify when the timestamp resync occurs

master
Mark Hills 2014-03-10 20:01:00 +00:00
parent cfd33222c6
commit a7904a4e08
1 changed files with 8 additions and 1 deletions

9
rx.c
View File

@ -32,6 +32,13 @@
static unsigned int verbose = DEFAULT_VERBOSE;
static void timestamp_jump(RtpSession *session, ...)
{
if (verbose > 1)
fputc('|', stderr);
rtp_session_resync(session);
}
static RtpSession* create_rtp_recv(const char *addr_desc, const int port,
unsigned int jitter)
{
@ -47,7 +54,7 @@ static RtpSession* create_rtp_recv(const char *addr_desc, const int port,
if (rtp_session_set_payload_type(session, 0) != 0)
abort();
if (rtp_session_signal_connect(session, "timestamp_jump",
(RtpCallback)rtp_session_resync, 0) != 0)
timestamp_jump, 0) != 0)
{
abort();
}