From 0f5a66770a6f43dd2c6bcb69601ec646d53b02f1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 17 Apr 2018 10:05:07 +0200 Subject: [PATCH] aft: Honor AUDIO_FILE_REMOVE events. If the current audio file has been removed, we should invalidate the current_aft_row pointer. --- aft.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aft.c b/aft.c index 2f972972..5233fe96 100644 --- a/aft.c +++ b/aft.c @@ -2581,6 +2581,10 @@ static int aft_event_handler(enum afs_events event, struct para_buffer *pb, return ret; make_status_items(); return 1; + } case AUDIO_FILE_REMOVE: { + if (data == current_aft_row) + current_aft_row = NULL; + return 0; } case BLOB_RENAME: case BLOB_REMOVE: -- 2.39.5