From: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Wed, 22 Oct 2025 17:00:01 +0000 (+0000) Subject: Fix spelling mistakes in comments and variables X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01477ebab5980cb700128cf01a1c65e6a4f89f5a;p=thirdparty%2Ftvheadend.git Fix spelling mistakes in comments and variables - 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> --- diff --git a/src/htsp_server.c b/src/htsp_server.c index e3c8ea4ac..2b7abd369 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -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; diff --git a/src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c b/src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c index 3f8f82081..22ebba04e 100644 --- a/src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c +++ b/src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c @@ -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); } diff --git a/src/muxer/muxer_libav.c b/src/muxer/muxer_libav.c index 04e844143..92bdf6a3d 100644 --- a/src/muxer/muxer_libav.c +++ b/src/muxer/muxer_libav.c @@ -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); diff --git a/src/packet.c b/src/packet.c index 58f841956..a61593c93 100644 --- a/src/packet.c +++ b/src/packet.c @@ -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, diff --git a/src/packet.h b/src/packet.h index 3b2bed91e..c6a507e32 100644 --- a/src/packet.h +++ b/src/packet.h @@ -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 *)); diff --git a/src/plumbing/tsfix.c b/src/plumbing/tsfix.c index 08a4c9498..405178bbf 100644 --- a/src/plumbing/tsfix.c +++ b/src/plumbing/tsfix.c @@ -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) { diff --git a/src/ratinglabels.c b/src/ratinglabels.c index 5671a4dd5..ff79b5aa5 100644 --- a/src/ratinglabels.c +++ b/src/ratinglabels.c @@ -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), }, { diff --git a/src/redblack.h b/src/redblack.h index 864fa3437..37df5e65c 100644 --- a/src/redblack.h +++ b/src/redblack.h @@ -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) \ ({ \ diff --git a/src/transcoding/codec/codecs/libs/vaapi.c b/src/transcoding/codec/codecs/libs/vaapi.c index 32324252e..27699c820 100644 --- a/src/transcoding/codec/codecs/libs/vaapi.c +++ b/src/transcoding/codec/codecs/libs/vaapi.c @@ -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); diff --git a/src/transcoding/codec/internals.h b/src/transcoding/codec/internals.h index 76fc72d12..beb526a89 100644 --- a/src/transcoding/codec/internals.h +++ b/src/transcoding/codec/internals.h @@ -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 */ diff --git a/src/wizard.c b/src/wizard.c index 6ceded5f0..e49f2e4a4 100644 --- a/src/wizard.c +++ b/src/wizard.c @@ -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