summaryrefslogtreecommitdiff
path: root/modules/opensles/player.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-06-17 09:19:54 +0200
committerAlfred E. Heggestad <aeh@db.org>2015-06-17 09:19:54 +0200
commit7a3f16da1c3847f068b873c1ad8c0bee3c9ac3aa (patch)
tree04083b61a6136fc81c1e259045e578423f4a161b /modules/opensles/player.c
parent0fd069ccb68666a419732e249dd0fcea163729bf (diff)
upgrade opensles module
Diffstat (limited to 'modules/opensles/player.c')
-rw-r--r--modules/opensles/player.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/opensles/player.c b/modules/opensles/player.c
index 797ae48..755ae4f 100644
--- a/modules/opensles/player.c
+++ b/modules/opensles/player.c
@@ -15,7 +15,7 @@
struct auplay_st {
- struct auplay *ap; /* inheritance */
+ const struct auplay *ap; /* inheritance */
auplay_write_h *wh;
void *arg;
int16_t *sampv[N_PLAY_QUEUE_BUFFERS];
@@ -43,8 +43,6 @@ static void auplay_destructor(void *arg)
for (int i=0; i<N_PLAY_QUEUE_BUFFERS; i++) {
mem_deref(st->sampv[i]);
}
-
- mem_deref(st->ap);
}
@@ -141,7 +139,7 @@ static int createPlayer(struct auplay_st *st, struct auplay_prm *prm)
}
-int opensles_player_alloc(struct auplay_st **stp, struct auplay *ap,
+int opensles_player_alloc(struct auplay_st **stp, const struct auplay *ap,
struct auplay_prm *prm, const char *device,
auplay_write_h *wh, void *arg)
{
@@ -156,7 +154,7 @@ int opensles_player_alloc(struct auplay_st **stp, struct auplay *ap,
if (!st)
return ENOMEM;
- st->ap = mem_ref(ap);
+ st->ap = ap;
st->wh = wh;
st->arg = arg;