diff options
Diffstat (limited to 'pjsip-apps/src/samples/playsine.c')
-rw-r--r-- | pjsip-apps/src/samples/playsine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjsip-apps/src/samples/playsine.c b/pjsip-apps/src/samples/playsine.c index ae4bec8c..4fad85b6 100644 --- a/pjsip-apps/src/samples/playsine.c +++ b/pjsip-apps/src/samples/playsine.c @@ -80,7 +80,7 @@ typedef struct static pj_status_t sine_get_frame( pjmedia_port *port, pjmedia_frame *frame) { - port_data *sine = port->user_data; + port_data *sine = port->port_data.pdata; pj_int16_t *samples = frame->buf; unsigned i, count, left, right; @@ -150,7 +150,7 @@ static pj_status_t create_sine_port(pj_pool_t *pool, port->get_frame = &sine_get_frame; /* Create sine port data */ - port->user_data = sine = pj_pool_zalloc(pool, sizeof(port_data)); + port->port_data.pdata = sine = pj_pool_zalloc(pool, sizeof(port_data)); /* Create samples */ count = port->info.samples_per_frame / channel_count; |