diff --git a/src/commands/rpcpv1_norecord.c b/src/commands/rpcpv1_norecord.c index 5e18bc060..642be9a55 100644 --- a/src/commands/rpcpv1_norecord.c +++ b/src/commands/rpcpv1_norecord.c @@ -70,12 +70,12 @@ handle_stop_record(const struct rtpp_cfg *cfsp, struct rtpp_session *spa, int id assert(spa->rtcp->stream[idx]->rrc != NULL); RTPP_LOG(spa->log, RTPP_LOG_INFO, "stopping recording RTCP session on port %d", spa->rtcp->stream[idx]->port); - CALL_SMETHOD(spa->rtcp->stream[idx]->rrc->rcnt, decref); + RTPP_OBJ_DECREF(spa->rtcp->stream[idx]->rrc); spa->rtcp->stream[idx]->rrc = NULL; } RTPP_LOG(spa->log, RTPP_LOG_INFO, "stopping recording RTP session on port %d", spa->rtp->stream[idx]->port); - CALL_SMETHOD(spa->rtp->stream[idx]->rrc->rcnt, decref); + RTPP_OBJ_DECREF(spa->rtp->stream[idx]->rrc); spa->rtp->stream[idx]->rrc = NULL; return 0; } diff --git a/src/rtpp_memdeb.c b/src/rtpp_memdeb.c index df873bc78..b8934217e 100644 --- a/src/rtpp_memdeb.c +++ b/src/rtpp_memdeb.c @@ -163,7 +163,7 @@ rtpp_memdeb_dtor(void *p) CHK_PRIV(pvt, p); if (pvt->_md_glog != NULL) { - CALL_SMETHOD(pvt->_md_glog->rcnt, decref); + RTPP_OBJ_DECREF(pvt->_md_glog); } pvt->magic = MEMDEB_SIGNATURE_FREE(pvt); pthread_mutex_destroy(&pvt->mutex); @@ -177,7 +177,7 @@ rtpp_memdeb_setlog(void *p, struct rtpp_log *log) struct rtpp_memdeb_priv *pvt; CHK_PRIV(pvt, p); - CALL_SMETHOD(log->rcnt, incref); + RTPP_OBJ_INCREF(log); pvt->_md_glog = log; } diff --git a/src/rtpp_stream.c b/src/rtpp_stream.c index 57b02e9a6..914d5ad6a 100644 --- a/src/rtpp_stream.c +++ b/src/rtpp_stream.c @@ -415,7 +415,7 @@ rtpp_stream_dtor(struct rtpp_stream_priv *pvt) struct rtpp_refcnt *mdata_rcnt; mdata_rcnt = atomic_load(&(pvt->pmod_data.adp[i])); if (mdata_rcnt != NULL) { - CALL_SMETHOD(mdata_rcnt, decref); + RC_DECREF(mdata_rcnt); } } if (pub->ttl != NULL)