Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvvaltman <vvaltman@neon>2015-04-23 18:01:47 +0300
committervvaltman <vvaltman@neon>2015-04-23 18:01:47 +0300
commitbd8b43753d9f47290570a5f262126169f4a52f89 (patch)
tree327a63c5d6604c57a6ee52f0e4154909286779c4 /updates.c
parent5e3729ca27787b473ee064b982eb95b2555a44c4 (diff)
fixed qts
Diffstat (limited to 'updates.c')
-rw-r--r--updates.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/updates.c b/updates.c
index 71bc28a..1f58254 100644
--- a/updates.c
+++ b/updates.c
@@ -59,7 +59,6 @@ int tgl_check_pts_diff (struct tgl_state *TLS, int pts, int pts_count) {
int tgl_check_qts_diff (struct tgl_state *TLS, int qts, int qts_count) {
vlogprintf (E_ERROR, "qts = %d, qts_count = %d\n", qts, qts_count);
- assert (TLS->qts);
if (qts < TLS->qts + qts_count) {
vlogprintf (E_NOTICE, "Duplicate message with qts=%d\n", qts);
return -1;
@@ -118,7 +117,7 @@ void tglu_work_update_new (struct tgl_state *TLS, int check_only, struct tl_ds_u
}
}
- if (DS_U->pts) {
+ if (DS_U->qts) {
if (!check_only && tgl_check_qts_diff (TLS, DS_LVAL (DS_U->qts), 1) <= 0) {
return;
}