Skip to content

Commit

Permalink
modify plugin filter
Browse files Browse the repository at this point in the history
  • Loading branch information
sbd021 committed Dec 31, 2021
1 parent d1972d4 commit 9672351
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/agora-plugin/video-plugin-filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct video_plugin_data {
static const char *video_plugin_filter_name(void *unused)
{
UNUSED_PARAMETER(unused);
return obs_module_text("VideoPluginFilter");
return obs_module_text("");
}

static void free_video_data(struct video_plugin_data *filter,
Expand Down Expand Up @@ -136,7 +136,7 @@ void RegistePluginVideoSource()
struct obs_source_info video_plugin_filter = {};
video_plugin_filter.id = "video_plugin_filter";
video_plugin_filter.type = OBS_SOURCE_TYPE_FILTER;
video_plugin_filter.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_ASYNC;
video_plugin_filter.output_flags = OBS_SOURCE_VIDEO | OBS_SOURCE_ASYNC | OBS_SOURCE_DEPRECATED;
video_plugin_filter.get_name = video_plugin_filter_name;
video_plugin_filter.create = video_plugin_filter_create;
video_plugin_filter.destroy = video_plugin_filter_destroy;
Expand Down
8 changes: 0 additions & 8 deletions src/forms/window-agora-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,6 @@ void AgoraBasic::CreateDisplay()

bool AgoraBasic::EnumSources(void* data, obs_source_t* source)
{
if (obs_obj_invalid(source))
return false;

AgoraBasic* window = static_cast<AgoraBasic*>(data);
const char* name = obs_source_get_name(source);
const char* id = obs_source_get_id(source);
Expand Down Expand Up @@ -951,9 +948,7 @@ void AgoraBasic::on_streamButton_clicked()
ui->streamButton->setText(starting_text);
std::thread th([this](){

//connect timeout
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 5);
// get data timeout
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 10);

//cancel verify
Expand All @@ -969,9 +964,6 @@ void AgoraBasic::on_streamButton_clicked()
json_res.clear();
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, http_callback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &json_res);

//set URL

//set POST data
//char szUrl[1024] = { 0 };
//sprintf_s(szUrl, 1024, "%s?appid=%s&&uid=%u&channelName=%s", m_settings.information_url.c_str()
Expand Down
1 change: 0 additions & 1 deletion src/forms/window-agora-main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ public slots:

static void DrawPreview(void *data, uint32_t cx, uint32_t cy);
static void RawVideoCallback(void *param, struct video_data *frame);

signals:
void DisplayCreated(AgoraBasic* agora);
void requestTokenSignal(QString, int err);
Expand Down

0 comments on commit 9672351

Please sign in to comment.