]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Remove unused profile_work_flags_t parameter to clean up API
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Sun, 7 Dec 2025 20:23:45 +0000 (20:23 +0000)
committerFlole <Flole998@users.noreply.github.com>
Mon, 8 Dec 2025 12:22:43 +0000 (13:22 +0100)
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
src/htsp_server.c
src/profile.c
src/profile.h

index 5ad196c25e83ed5e0d409fc3e6306ed11aedeefa..5ca20a65fe57b6d96917c87e2d8f916b474e0a68 100644 (file)
@@ -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);
index cd0d761b20de8ad70e9d83802eea46b19f71c400..7d2277c719d269d4ad8e573854d9738adbe71975 100644 (file)
@@ -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;
index 41e57da5d8a3adb0d7cfc703df333e06b9e2c112..647084e3e64b0a5a29154cf26cbd155efabc6a5c 100644 (file)
@@ -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);