Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Jul 29, 2023
1 parent 681d0ac commit 8d02d60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/ui/RequestBuilder.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#include <obs.h>

#include "RequestBuilder.h"

class KeyValueWidget : public QWidget {
Expand Down
5 changes: 3 additions & 2 deletions src/url-source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
#include <graphics/graphics.h>
#include <obs-module.h>
#include <obs-frontend-api.h>
#include <thread>

struct url_source_data {
obs_source_t *source;
Expand Down Expand Up @@ -127,8 +128,8 @@ static void *url_source_create(obs_data_t *settings, obs_source_t *source)
usd->request_data.output_type = "json";
usd->request_data.output_json_path = "fact";
// serialize request data
std::string serialized_request_data = serialize_request_data(&(usd->request_data));
// Save on settings
serialized_request_data = serialize_request_data(&(usd->request_data));
// Save new data on settings
obs_data_set_string(settings, "request_data", serialized_request_data.c_str());
} else {
// Unserialize request data
Expand Down

0 comments on commit 8d02d60

Please sign in to comment.