From: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Sun, 7 Dec 2025 20:23:45 +0000 (+0000) Subject: Remove unused profile_work_flags_t parameter to clean up API X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c4ac2f7b8a2f0d23baa5eaba1b62d9adfb45c5c;p=thirdparty%2Ftvheadend.git Remove unused profile_work_flags_t parameter to clean up API Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com> --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 5ad196c25..5ca20a65f 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -2687,7 +2687,7 @@ htsp_method_subscribe(htsp_connection_t *htsp, htsmsg_t *in) pro = profile_find_by_list(htsp->htsp_granted_access->aa_profiles, profile_id, "htsp", SUBSCRIPTION_PACKET | SUBSCRIPTION_HTSP); profile_chain_init(&hs->hs_prch, pro, ch, 1); - if (profile_chain_work(&hs->hs_prch, &hs->hs_input, timeshiftPeriod, 0)) { + if (profile_chain_work(&hs->hs_prch, &hs->hs_input, timeshiftPeriod)) { tvherror(LS_HTSP, "unable to create profile chain '%s'", profile_get_name(pro)); profile_chain_close(&hs->hs_prch); free(hs); diff --git a/src/profile.c b/src/profile.c index cd0d761b2..7d2277c71 100644 --- a/src/profile.c +++ b/src/profile.c @@ -1049,11 +1049,11 @@ profile_chain_init(profile_chain_t *prch, profile_t *pro, void *id, int queue) */ int profile_chain_work(profile_chain_t *prch, struct streaming_target *dst, - uint32_t timeshift_period, profile_work_flags_t flags) + uint32_t timeshift_period) { profile_t *pro = prch->prch_pro; if (pro && pro->pro_work) - return pro->pro_work(prch, dst, timeshift_period, flags); + return pro->pro_work(prch, dst, timeshift_period); return -1; } @@ -1213,7 +1213,7 @@ const idclass_t profile_htsp_class = static int profile_htsp_work(profile_chain_t *prch, streaming_target_t *dst, - uint32_t timeshift_period, profile_work_flags_t flags) + uint32_t timeshift_period) { profile_sharer_t *prsh; @@ -1995,7 +1995,7 @@ profile_audio_open(profile_chain_t *prch, prch->prch_flags = SUBSCRIPTION_PACKET; prch->prch_sq.sq_maxsize = qsize; - r = profile_htsp_work(prch, &prch->prch_sq.sq_st, 0, 0); + r = profile_htsp_work(prch, &prch->prch_sq.sq_st, 0); if (r) { profile_chain_close(prch); return r; @@ -2063,7 +2063,7 @@ profile_libav_mpegts_open(profile_chain_t *prch, prch->prch_flags = SUBSCRIPTION_PACKET; prch->prch_sq.sq_maxsize = qsize; - r = profile_htsp_work(prch, &prch->prch_sq.sq_st, 0, 0); + r = profile_htsp_work(prch, &prch->prch_sq.sq_st, 0); if (r) { profile_chain_close(prch); return r; @@ -2154,7 +2154,7 @@ profile_libav_matroska_open(profile_chain_t *prch, prch->prch_flags = SUBSCRIPTION_PACKET; prch->prch_sq.sq_maxsize = qsize; - r = profile_htsp_work(prch, &prch->prch_sq.sq_st, 0, 0); + r = profile_htsp_work(prch, &prch->prch_sq.sq_st, 0); if (r) { profile_chain_close(prch); return r; @@ -2217,7 +2217,7 @@ profile_libav_mp4_open(profile_chain_t *prch, prch->prch_flags = SUBSCRIPTION_PACKET; prch->prch_sq.sq_maxsize = qsize; - r = profile_htsp_work(prch, &prch->prch_sq.sq_st, 0, 0); + r = profile_htsp_work(prch, &prch->prch_sq.sq_st, 0); if (r) { profile_chain_close(prch); return r; @@ -2673,7 +2673,7 @@ profile_transcode_can_share(profile_chain_t *prch, static int profile_transcode_work(profile_chain_t *prch, streaming_target_t *dst, - uint32_t timeshift_period, profile_work_flags_t flags) + uint32_t timeshift_period) { profile_sharer_t *prsh; profile_transcode_t *pro = (profile_transcode_t *)prch->prch_pro; @@ -2786,7 +2786,7 @@ profile_transcode_open(profile_chain_t *prch, prch->prch_flags = SUBSCRIPTION_PACKET; prch->prch_sq.sq_maxsize = qsize; - r = profile_transcode_work(prch, &prch->prch_sq.sq_st, 0, 0); + r = profile_transcode_work(prch, &prch->prch_sq.sq_st, 0); if (r) { profile_chain_close(prch); return r; diff --git a/src/profile.h b/src/profile.h index 41e57da5d..647084e3e 100644 --- a/src/profile.h +++ b/src/profile.h @@ -45,9 +45,7 @@ typedef enum { PROFILE_SVF_UHD } profile_svfilter_t; -typedef enum { - PROFILE_WORK_NONE = 0 -} profile_work_flags_t; + struct profile; struct muxer; @@ -134,7 +132,7 @@ typedef struct profile { void (*pro_conf_changed)(struct profile *pro); int (*pro_work)(profile_chain_t *prch, struct streaming_target *dst, - uint32_t timeshift_period, profile_work_flags_t flags); + uint32_t timeshift_period); int (*pro_reopen)(profile_chain_t *prch, muxer_config_t *m_cfg, muxer_hints_t *hints, int flags); int (*pro_open)(profile_chain_t *prch, muxer_config_t *m_cfg, @@ -180,7 +178,7 @@ static inline void profile_release( profile_t *pro ) } int profile_chain_work(profile_chain_t *prch, struct streaming_target *dst, - uint32_t timeshift_period, profile_work_flags_t flags); + uint32_t timeshift_period); int profile_chain_reopen(profile_chain_t *prch, muxer_config_t *m_cfg, muxer_hints_t *hints, int flags);