path: root/include
diff options
authorAlfred E. Heggestad <>2015-06-16 21:49:43 +0200
committerAlfred E. Heggestad <>2015-06-16 21:49:43 +0200
commit500a7d1de384e37d609476f84dce207cccf88dc2 (patch)
tree496ad61eb5d19117470fabcb8bdb62587a374769 /include
parent55fe148705d206d206f61dd9aa119a6672378e07 (diff)
change ausrc/auplay base-class to pointer
- change from a memory-reference to a const pointer - this saves one mem_deref() in the destructor and also decreases the chance of introducing memory leaks - test on debian
Diffstat (limited to 'include')
1 files changed, 2 insertions, 2 deletions
diff --git a/include/baresip.h b/include/baresip.h
index ac1c6eb..fe0dbab 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -266,7 +266,7 @@ struct ausrc_prm {
typedef void (ausrc_read_h)(const int16_t *sampv, size_t sampc, void *arg);
typedef void (ausrc_error_h)(int err, const char *str, void *arg);
-typedef int (ausrc_alloc_h)(struct ausrc_st **stp, struct ausrc *ausrc,
+typedef int (ausrc_alloc_h)(struct ausrc_st **stp, const struct ausrc *ausrc,
struct media_ctx **ctx,
struct ausrc_prm *prm, const char *device,
ausrc_read_h *rh, ausrc_error_h *errh, void *arg);
@@ -296,7 +296,7 @@ struct auplay_prm {
typedef void (auplay_write_h)(int16_t *sampv, size_t sampc, void *arg);
-typedef int (auplay_alloc_h)(struct auplay_st **stp, struct auplay *ap,
+typedef int (auplay_alloc_h)(struct auplay_st **stp, const struct auplay *ap,
struct auplay_prm *prm, const char *device,
auplay_write_h *wh, void *arg);