Skip to content

Commit

Permalink
ampache: Fix usage of obsolete vfs_async_file_get_contents function
Browse files Browse the repository at this point in the history
  • Loading branch information
openhs authored Jan 3, 2024
1 parent 3415689 commit 524952d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ampache/ampache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ void* AmpacheBrowserPlugin::get_qt_widget()
s_app.capture(new ampache_browser::ApplicationQt);

s_app->setNetworkRequestFunction([](const std::string& url, NetworkCb& networkCb) {
vfs_async_file_get_contents(url.c_str(), vfsAsyncCb, &networkCb);
using namespace std::placeholders;
vfs_async_file_get_contents(url.c_str(), std::bind(vfsAsyncCb, _1, _2, &networkCb));
});

auto& browser = s_app->getAmpacheBrowser();
Expand Down

0 comments on commit 524952d

Please sign in to comment.