Skip to content

Commit

Permalink
fix build with GPAC_DISABLE_NETWORK (emscripten)
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliendavid committed Dec 18, 2023
1 parent ca1ac18 commit f0ac9b8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/filters/out_http.c
Expand Up @@ -192,7 +192,7 @@ typedef struct __httpout_input

u8 *tunein_data;
u32 tunein_data_size;

Bool force_dst_name;
Bool in_error;
u32 clock_first_error;
Expand Down Expand Up @@ -2510,7 +2510,7 @@ static GF_Err httpout_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool i

gf_filter_pid_init_play_event(pid, &evt, 0.0, 1.0, "HTTPOut");
gf_filter_pid_send_event(pid, &evt);

}
if (is_remove) {
return GF_OK;
Expand Down Expand Up @@ -2618,7 +2618,7 @@ static void httpout_check_new_session(GF_HTTPOutCtx *ctx)
gf_list_add(ctx->sessions, sess);
gf_list_add(ctx->active_sessions, sess);
gf_sk_group_register(ctx->sg, sess->socket);

gf_sk_set_buffer_size(new_conn, GF_FALSE, ctx->block_size);
gf_sk_set_buffer_size(new_conn, GF_TRUE, ctx->block_size);
strcpy(sess->peer_address, peer_address);
Expand Down Expand Up @@ -3751,7 +3751,7 @@ static Bool httpout_open_input(GF_HTTPOutCtx *ctx, GF_HTTPOutInput *in, const ch
if (ctx->dst && !an_in->force_dst_name) continue;
if (!gf_filter_pid_share_origin(in->ipid, an_in->ipid))
continue;

o_url = gf_strdup(an_in->path);
path_sep = strrchr(o_url, '/');
if (path_sep) {
Expand Down Expand Up @@ -5154,6 +5154,9 @@ const GF_FilterRegister *httpout_register(GF_FilterSession *session)
}

#else

typedef void GF_HTTPOutSession ;

const GF_FilterRegister *httpout_register(GF_FilterSession *session)
{
return NULL;
Expand Down

0 comments on commit f0ac9b8

Please sign in to comment.