Diff between cc3dd149f811ada9eb70a4641af9ebfd06e0b427 and 3c5413c3dd519ebbe385f480db0e3780d16d6b54
Changed Files
| File | Additions | Deletions | Status |
| android/hal-sco.c | +6 | -0 | modified |
Full Patch
diff --git a/android/hal-sco.c b/android/hal-sco.c
index ea9857e..5888275 100644
--- a/android/hal-sco.c
+++ b/android/hal-sco.c
@@ -617,6 +617,9 @@ static int sco_open_output_stream(struct audio_hw_device *dev,
return 0;
failed:
+ if (out->resampler)
+ release_resampler(out->resampler);
+
free(out->downmix_buf);
free(out);
stream_out = NULL;
@@ -638,6 +641,9 @@ static void sco_close_output_stream(struct audio_hw_device *dev,
sco_dev->out->fd = -1;
}
+ if (out->resampler)
+ release_resampler(out->resampler);
+
free(out->downmix_buf);
free(out);
sco_dev->out = NULL;