Skip to content

Commit

Permalink
Pull request #13: Bugfix/UNI-343 some settings from xml file are not …
Browse files Browse the repository at this point in the history
…applied correctly

Merge in HSW_SDK/gst-vmbsrc from bugfix/UNI-343-some-settings-from-xml-file-are-not-applied-correctly to dev

* commit '14a9059bbe94e6086820aa52e71de87ab2a85168':
  Remove outdated todo comment
  Use `VmbSettingsLoad` default settings
  • Loading branch information
NiklasKroeger-AlliedVision committed Feb 23, 2023
2 parents 9cea32b + 14a9059 commit 2940d67
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/gstvmbsrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1225,16 +1225,12 @@ static gboolean gst_vmbsrc_start(GstBaseSrc *src)
buffer = calloc(num_wchar, sizeof(VmbFilePathChar_t));
mbstowcs_s(NULL, buffer, num_wchar, vmbsrc->properties.settings_file_path, num_char);
#else
// TODO: THIS NEEDS TO BE TESTED ON A LINUX SYSTEM
buffer = vmbsrc->properties.settings_file_path;
#endif
VmbFeaturePersistSettings_t settings = {
.persistType = VmbFeaturePersistStreamable,
.maxIterations = 0};
result = VmbSettingsLoad(vmbsrc->camera.handle,
buffer,
&settings,
sizeof(settings));
NULL,
sizeof(VmbFeaturePersistSettings_t));
#ifdef _WIN32
free(buffer);
#endif
Expand Down

0 comments on commit 2940d67

Please sign in to comment.