bindings/cxx/classes.cpp: Fix sr_session_load() invocation.

This commit is contained in:
Uwe Hermann 2015-03-25 18:25:57 +01:00
parent 60f6b00144
commit c879dca3d7
1 changed files with 1 additions and 1 deletions

View File

@ -898,7 +898,7 @@ Session::Session(shared_ptr<Context> context, string filename) :
_filename(filename),
_saving(false)
{
check(sr_session_load(filename.c_str(), &_structure));
check(sr_session_load(context->_structure, filename.c_str(), &_structure));
GSList *dev_list;
check(sr_session_dev_list(_structure, &dev_list));
for (GSList *dev = dev_list; dev; dev = dev->next)