Skip to content

Commit

Permalink
fix shutdown callback
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Dec 26, 2023
1 parent 8cdd830 commit 43c6a67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ MPV_EXPORT int mpv_open_cplugin(mpv_handle *handle) {
case MPV_EVENT_CLIENT_MESSAGE:
handle_client_message(event);
break;
case MPV_EVENT_SHUTDOWN:
destroy_plugin_ctx();
break;
default:
break;
}
}

mpv_unobserve_property(handle, 0);
destroy_plugin_ctx();

return 0;
}

Expand Down

0 comments on commit 43c6a67

Please sign in to comment.