mirror of
http://www.pogo.org.uk/~mark/trx.git
synced 2024-11-24 11:25:06 +01:00
Notify when the timestamp resync occurs
This commit is contained in:
parent
cfd33222c6
commit
a7904a4e08
9
rx.c
9
rx.c
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user