return SR_ERR_ARG;
ctx = g_malloc0(sizeof(struct context));
- o->internal = ctx;
+ o->priv = ctx;
ctx->separator = ',';
/* Get the number of channels, and the unitsize. */
int num_channels, i;
char *samplerate_s;
- ctx = o->internal;
+ ctx = o->priv;
header = g_string_sized_new(512);
/* Some metadata */
*out = NULL;
if (!o || !o->sdi)
return SR_ERR_ARG;
- if (!(ctx = o->internal))
+ if (!(ctx = o->priv))
return SR_ERR_ARG;
switch (packet->type) {
if (!o || !o->sdi)
return SR_ERR_ARG;
- if (o->internal) {
- ctx = o->internal;
+ if (o->priv) {
+ ctx = o->priv;
g_free(ctx->channel_index);
- g_free(o->internal);
- o->internal = NULL;
+ g_free(o->priv);
+ o->priv = NULL;
}
return SR_OK;