From 5eae20fc0f2387dfffe276e64e1132e7ad8093a9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 15 Jun 2015 14:32:14 +0200 Subject: audio: remove unused readonly field Its last use was removed in 433402b5. --- audio/audio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'audio/audio.c') diff --git a/audio/audio.c b/audio/audio.c index baf00c08b2..a61e8c458c 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -118,7 +118,6 @@ void mp_audio_set_null_data(struct mp_audio *mpa) mpa->allocated[n] = NULL; } mpa->samples = 0; - mpa->readonly = false; } static int get_plane_size(const struct mp_audio *mpa, int samples) @@ -261,7 +260,7 @@ void mp_audio_skip_samples(struct mp_audio *data, int samples) // Will return true for non-refcounted frames. bool mp_audio_is_writeable(struct mp_audio *data) { - bool ok = !data->readonly; + bool ok = true; for (int n = 0; n < MP_NUM_CHANNELS; n++) { if (data->allocated[n]) ok &= av_buffer_is_writable(data->allocated[n]); -- cgit v1.2.3