From 81d169d37d7b8dff50b1b065de6c62873d264be3 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sun, 14 May 2006 21:29:53 +0000 Subject: Changed default sound back-end on Win32 to own DirectSound git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@445 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/samples/sndinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pjsip-apps') diff --git a/pjsip-apps/src/samples/sndinfo.c b/pjsip-apps/src/samples/sndinfo.c index 3a184164..5ddc67a9 100644 --- a/pjsip-apps/src/samples/sndinfo.c +++ b/pjsip-apps/src/samples/sndinfo.c @@ -127,7 +127,7 @@ static pj_status_t rec_cb(void *user_data, pj_uint32_t timestamp, ++rec_counter; - if (timestamp - last_rec_timestamp >= clock_rate) { + if (timestamp - last_rec_timestamp >= clock_rate && last_play_timestamp) { int diff; diff = last_play_timestamp - timestamp; printf("Play timestamp=%u, capture timestamp=%u, diff=%d\n", -- cgit v1.2.3