]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix spelling mistakes in comments and variables
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Wed, 22 Oct 2025 17:00:01 +0000 (17:00 +0000)
committerFlole <Flole998@users.noreply.github.com>
Sat, 25 Oct 2025 12:04:12 +0000 (14:04 +0200)
- Fix "teh" → "the" in muxer_libav.c
- Fix "recieved" → "received" in ratinglabels.c
- Fix "seperated" → "separated" in wizard.c
- Fix "accomodate" → "accommodate" in tvhdhomerun_frontend.c
- Fix "usefull" → "useful" in vaapi.c (4 instances) and internals.h
- Fix "transfered" → "transferred" in packet.c, packet.h, and htsp_server.c
- Fix "occures" → "occurs" in redblack.h and tsfix.c
- Fix "fur" → "for" in vaapi.c (4 instances)

All spelling corrections use British English as requested.

Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
src/htsp_server.c
src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c
src/muxer/muxer_libav.c
src/packet.c
src/packet.h
src/plumbing/tsfix.c
src/ratinglabels.c
src/redblack.h
src/transcoding/codec/codecs/libs/vaapi.c
src/transcoding/codec/internals.h
src/wizard.c

index e3c8ea4ac3a09401488fd2f4924cfa0084aba2e3..2b7abd3691867521de94c5c48a9ca5f544ce5843 100644 (file)
@@ -4628,7 +4628,7 @@ htsp_streaming_input(void *opaque, streaming_message_t *sm)
       tvhdebug(LS_HTSP, "%s - first packet", hs->hs_htsp->htsp_logname);
     hs->hs_first = 1;
     htsp_stream_deliver(hs, sm->sm_data);
-    // reference is transfered
+    // reference is transferred
     sm->sm_data = NULL;
     break;
 
index 3f8f82081cc135ad43f03369e664e422dc1b1eb7..22ebba04eda2a2f48c53053fb03892434cc050e1 100644 (file)
@@ -126,7 +126,7 @@ tvhdhomerun_frontend_input_thread ( void *aux )
     return NULL;
   }
 
-  /* important: we need large rx buffers to accomodate the large amount of traffic */
+  /* important: we need large rx buffers to accommodate the large amount of traffic */
   if(setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, (char *) &rx_size, sizeof(rx_size)) < 0) {
     tvhwarn(LS_TVHDHOMERUN, "failed set socket rx buffer size, expect CC errors (%d)", errno);
   }
index 04e8441435331aaa56ac541c45c7b518a86f2dad..92bdf6a3d3e84d63c922b50f4c11583908f84d0b 100644 (file)
@@ -455,7 +455,7 @@ lav_muxer_init(muxer_t* m, struct streaming_start *ss, const char *name)
     // parameters are required to make mpeg-ts output compliant with mpeg-ts standard
     // implemented using documentation: https://ffmpeg.org/ffmpeg-formats.html#mpegts-1
     if (lm->m_config.u.transcode.m_rewrite_sid > 0) {
-      // override from profile requested by teh user
+      // override from profile requested by the user
       snprintf(mpegts_info, sizeof(mpegts_info), "0x%04x", lm->m_config.u.transcode.m_rewrite_sid);
       tvhdebug(LS_LIBAV,  "MPEGTS: mpegts_service_id = %s", mpegts_info);
       av_dict_set(&opts, "mpegts_service_id", mpegts_info, 0);
index 58f8419560e09148c54e562e5b0d5dfa5d506417..a61593c934bdea84528fde35b49d9ff2a8d94f0e 100644 (file)
@@ -220,7 +220,7 @@ pktref_clear_queue(struct th_pktref_queue *q)
 
 
 /**
- * Reference count is transfered to queue
+ * Reference count is transferred to queue
  */
 void
 pktref_enqueue(struct th_pktref_queue *q, th_pkt_t *pkt)
@@ -235,7 +235,7 @@ pktref_enqueue(struct th_pktref_queue *q, th_pkt_t *pkt)
 
 
 /**
- * Reference count is transfered to queue
+ * Reference count is transferred to queue
  */
 void
 pktref_enqueue_sorted(struct th_pktref_queue *q, th_pkt_t *pkt,
index 3b2bed91eb3c49db834ce23d63a2e7cf7ce5f278..c6a507e32cd791a60e8a6ec9a72b4d617df8291d 100644 (file)
@@ -110,10 +110,10 @@ void pkt_ref_inc_poly(th_pkt_t *pkt, int n);
 
 void pktref_clear_queue(struct th_pktref_queue *q);
 
-// Reference count is transfered to queue
+// Reference count is transferred to queue
 void pktref_enqueue(struct th_pktref_queue *q, th_pkt_t *pkt);
 
-// Reference count is transfered to queue
+// Reference count is transferred to queue
 void pktref_enqueue_sorted(struct th_pktref_queue *q, th_pkt_t *pkt,
                            int (*cmp)(const void *, const void *));
 
index 08a4c9498f51c15cbc5f0b50034ace6f3dc810d3..405178bbff3cac202eb60f68516adc9fe8e7bce9 100644 (file)
@@ -481,7 +481,7 @@ recover_pts(tsfix_t *tf, tfstream_t *tfs, th_pkt_t *pkt)
       case PKT_I_FRAME:
       case PKT_P_FRAME:
         if (pkt->pkt_pts == PTS_UNSET) {
-         /* Presentation occures at DTS of next I or P frame,
+         /* Presentation occurs at DTS of next I or P frame,
             try to find it */
           total = 0;
           PKTREF_FOREACH(srch, &tf->tf_ptsq) {
index 5671a4dd5ccbf27d046254023228d182d2f0acb1..ff79b5aa594ce952e2c652fba67594264c4e061a 100644 (file)
@@ -644,7 +644,7 @@ const idclass_t ratinglabel_class = {
       .type     = PT_STR,
       .id       = "country",
       .name     = N_("Country"),
-      .desc     = N_("Country recieved via OTA EPG."),
+      .desc     = N_("Country received via OTA EPG."),
       .off      = offsetof(ratinglabel_t, rl_country),
     },
     {
index 864fa34374919f5da077073559d8f0a8f3a3fdb8..37df5e65ca2622dd79dc87d29210fbaa305bd95f 100644 (file)
@@ -143,7 +143,7 @@ do {                                                                          \
 
 
 /**
- * Insert a new node, if a collision occures the colliding node is returned
+ * Insert a new node, if a collision occurs the colliding node is returned
  */
 #define RB_INSERT_SORTED(head, skel, field, cmpfunc)                    \
 ({                                                                      \
index 32324252e012ff782ea757894ba258f89971e13e..27699c820d65f417100727fe67e75193e96a1e8a 100644 (file)
@@ -596,7 +596,7 @@ tvh_codec_profile_vaapi_h264_open(tvh_codec_profile_vaapi_t *self,
     switch (self->platform) {
         case VAAPI_ENC_PLATFORM_UNCONSTRAINED:
             // Uncontrained --> will allow any combination of parameters (valid or invalid)
-            // this mode is usefull fur future platform and for debugging.
+            // this mode is useful for future platform and for debugging.
             if (self->b_reference) {
                 // b_depth
                 AV_DICT_SET_INT(LST_VAAPI, opts, "b_depth", self->b_reference, AV_DICT_DONT_OVERWRITE);
@@ -910,7 +910,7 @@ tvh_codec_profile_vaapi_hevc_open(tvh_codec_profile_vaapi_t *self,
     switch (self->platform) {
         case VAAPI_ENC_PLATFORM_UNCONSTRAINED:
             // Unconstrained --> will allow any combination of parameters (valid or invalid)
-            // this mode is usefull fur future platform and for debugging.
+            // this mode is useful for future platform and for debugging.
             if (self->b_reference) {
                 // b_depth
                 AV_DICT_SET_INT(LST_VAAPI, opts, "b_depth", self->b_reference, AV_DICT_DONT_OVERWRITE);
@@ -1198,7 +1198,7 @@ tvh_codec_profile_vaapi_vp8_open(tvh_codec_profile_vaapi_t *self,
     switch (self->platform) {
         case VAAPI_ENC_PLATFORM_UNCONSTRAINED:
             // Unconstrained --> will allow any combination of parameters (valid or invalid)
-            // this mode is usefull fur future platform and for debugging.
+            // this mode is useful for future platform and for debugging.
             if (self->b_reference) {
                 // b_depth
                 AV_DICT_SET_INT(LST_VAAPI, opts, "b_depth", self->b_reference, AV_DICT_DONT_OVERWRITE);
@@ -1506,7 +1506,7 @@ tvh_codec_profile_vaapi_vp9_open(tvh_codec_profile_vaapi_t *self,
     switch (self->platform) {
         case VAAPI_ENC_PLATFORM_UNCONSTRAINED:
             // Unconstrained --> will allow any combination of parameters (valid or invalid)
-            // this mode is usefull fur future platform and for debugging.
+            // this mode is useful for future platform and for debugging.
             if (self->b_reference) {
                 // b_depth
                 AV_DICT_SET_INT(LST_VAAPI, opts, "b_depth", self->b_reference, AV_DICT_DONT_OVERWRITE);
index 76fc72d12649999f6d42d7482c09648b22368ad4..beb526a899dec340d705c0728c1cef668cfa9795 100644 (file)
@@ -518,7 +518,7 @@ typedef struct {
  * https://www.ffmpeg.org/ffmpeg-codecs.html#toc-VAAPI-encoders
  * @note
  * int:
- * 0 - Unconstrained (usefull for debug)
+ * 0 - Unconstrained (useful for debug)
  * 1 - Intel
  * 2 - AMD
  */
index 6ceded5f07f1e5210fe546c03a0ec590d02666e9..e49f2e4a4da21142ee563ce51e1c26bbc32bad30 100644 (file)
@@ -413,7 +413,7 @@ wizard_page_t *wizard_login(const char *lang)
       .id       = "network",
       .name     = N_("Allowed network"),
       .desc     = N_("Enter allowed network prefix(es). You can enter a "
-                     "comma-seperated list of prefixes here."),
+                     "comma-separated list of prefixes here."),
       .get      = wizard_get_value_network,
       .set      = wizard_set_value_network,
       .group    = 1