From 526c8928afc7f6c9c33b94bed7071de6247a2fea Mon Sep 17 00:00:00 2001 From: Anton Kesy Date: Sun, 11 Jan 2026 00:55:19 +0100 Subject: [PATCH] plugins: Fix typos --- plugins/linux-pulseaudio/pulse-input.c | 2 +- plugins/linux-pulseaudio/pulse-wrapper.h | 2 +- plugins/linux-v4l2/v4l2-udev.c | 2 +- plugins/mac-avcapture/OBSAVCapture.h | 2 +- plugins/mac-avcapture/OBSAVCapture.m | 2 +- plugins/mac-virtualcam/src/common/MachProtocol.h | 2 +- plugins/obs-nvenc/nvenc-opts-parser.c | 2 +- plugins/obs-outputs/mp4-mux.c | 4 ++-- plugins/obs-vst/win/EditorWidget-win.cpp | 4 ++-- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/plugins/linux-pulseaudio/pulse-input.c b/plugins/linux-pulseaudio/pulse-input.c index 5ff4c48b4..0642a2225 100644 --- a/plugins/linux-pulseaudio/pulse-input.c +++ b/plugins/linux-pulseaudio/pulse-input.c @@ -264,7 +264,7 @@ static void pulse_source_info(pa_context *c, const pa_source_info *i, int eol, v { UNUSED_PARAMETER(c); PULSE_DATA(userdata); - // An error occured + // An error occurred if (eol < 0) { data->format = PA_SAMPLE_INVALID; goto skip; diff --git a/plugins/linux-pulseaudio/pulse-wrapper.h b/plugins/linux-pulseaudio/pulse-wrapper.h index 9c0b0ac2a..bcfc8af76 100644 --- a/plugins/linux-pulseaudio/pulse-wrapper.h +++ b/plugins/linux-pulseaudio/pulse-wrapper.h @@ -64,7 +64,7 @@ void pulse_wait(); /** * Wait for accept signal from calling thread * - * This function tells the pulseaudio mainloop wheter the data provided to + * This function tells the pulseaudio mainloop whether the data provided to * the callback should be retained until the calling thread executes * pulse_accept() * diff --git a/plugins/linux-v4l2/v4l2-udev.c b/plugins/linux-v4l2/v4l2-udev.c index f8e699e14..70cf78478 100644 --- a/plugins/linux-v4l2/v4l2-udev.c +++ b/plugins/linux-v4l2/v4l2-udev.c @@ -63,7 +63,7 @@ static enum udev_action udev_action_to_enum(const char *action) /** * Call all registered callbacks with the event * - * @param dev udev device that had an event occuring + * @param dev udev device that had an event occurring */ static inline void udev_signal_event(struct udev_device *dev) { diff --git a/plugins/mac-avcapture/OBSAVCapture.h b/plugins/mac-avcapture/OBSAVCapture.h index 5342cf2f5..a41455795 100644 --- a/plugins/mac-avcapture/OBSAVCapture.h +++ b/plugins/mac-avcapture/OBSAVCapture.h @@ -180,7 +180,7 @@ typedef struct av_capture_info { /// Reads a C-character pointer from user settings and converts it into an [NSString](https://developer.apple.com/documentation/foundation/nsstring?language=objc) instance. /// - Parameters: /// - settings: Pointer to user settings struct used by ``libobs`` -/// - setting: String identifer for setting +/// - setting: String identifier for setting /// - widthDefault: Optional fallback value to use if C-character pointer read from settings is invalid /// - Returns: New [NSString](https://developer.apple.com/documentation/foundation/nsstring?language=objc) instance created from user setting if setting represented a valid C character pointer. + (NSString *)stringFromSettings:(void *)settings withSetting:(NSString *)setting withDefault:(NSString *)defaultValue; diff --git a/plugins/mac-avcapture/OBSAVCapture.m b/plugins/mac-avcapture/OBSAVCapture.m index 0076d36e6..29ce8e9c4 100644 --- a/plugins/mac-avcapture/OBSAVCapture.m +++ b/plugins/mac-avcapture/OBSAVCapture.m @@ -8,7 +8,7 @@ #import "OBSAVCapture.h" #import "AVCaptureDeviceFormat+OBSListable.h" -/// Tthe maximum number of frame rate ranges to show complete information for before providing a more generic description of the supported frame rates inside of a device format description. +/// The maximum number of frame rate ranges to show complete information for before providing a more generic description of the supported frame rates inside of a device format description. static const UInt32 kMaxFrameRateRangesInDescription = 10; @implementation OBSAVCapture diff --git a/plugins/mac-virtualcam/src/common/MachProtocol.h b/plugins/mac-virtualcam/src/common/MachProtocol.h index 54b8d2500..77e000643 100644 --- a/plugins/mac-virtualcam/src/common/MachProtocol.h +++ b/plugins/mac-virtualcam/src/common/MachProtocol.h @@ -8,7 +8,7 @@ #define MACH_SERVICE_NAME "com.obsproject.obs-mac-virtualcam.server" typedef enum { - //! Initial connect message sent from the client to the server to initate a connection + //! Initial connect message sent from the client to the server to initiate a connection MachMsgIdConnect = 1, //! Message containing data for a frame MachMsgIdFrame = 2, diff --git a/plugins/obs-nvenc/nvenc-opts-parser.c b/plugins/obs-nvenc/nvenc-opts-parser.c index 88945a461..06e08fd0c 100644 --- a/plugins/obs-nvenc/nvenc-opts-parser.c +++ b/plugins/obs-nvenc/nvenc-opts-parser.c @@ -82,7 +82,7 @@ static bool apply_rc_opt(const struct obs_option *opt, NV_ENC_RC_PARAMS *nv_conf APPLY_INT_OPT(lookaheadLevel, NV_ENC_LOOKAHEAD_LEVEL, PRIu32) #endif - /* Macros above will return true if succesfully evaluated. + /* Macros above will return true if successfully evaluated. * Otherwise, return false if option unknown/unsupported. */ return false; } diff --git a/plugins/obs-outputs/mp4-mux.c b/plugins/obs-outputs/mp4-mux.c index daac3e73d..32f7e6979 100644 --- a/plugins/obs-outputs/mp4-mux.c +++ b/plugins/obs-outputs/mp4-mux.c @@ -979,7 +979,7 @@ static size_t mp4_write_mp4a(struct mp4_mux *mux, struct mp4_track *track, uint8 // esds mp4_write_esds(mux, track); - /* Write channel layout for version 1 sample entires */ + /* Write channel layout for version 1 sample entries */ if (version == 1) mp4_write_chnl(mux, track); @@ -2566,7 +2566,7 @@ static void process_packets(struct mp4_mux *mux, struct mp4_track *track, uint64 if (pkt->keyframe) da_push_back(track->sync_samples, &track->samples); - /* Only require ctts box if offet is non-zero */ + /* Only require ctts box if offset is non-zero */ if (offset && !track->needs_ctts) track->needs_ctts = true; diff --git a/plugins/obs-vst/win/EditorWidget-win.cpp b/plugins/obs-vst/win/EditorWidget-win.cpp index f5b231bcd..8e8593926 100644 --- a/plugins/obs-vst/win/EditorWidget-win.cpp +++ b/plugins/obs-vst/win/EditorWidget-win.cpp @@ -49,7 +49,7 @@ void EditorWidget::buildEffectContainer(AEffect *effect) effect->dispatcher(effect, effEditGetRect, 0, 0, &vstRect, 0); if (vstRect) { // on Windows, the size reported by 'effect' is larger than - // its actuall size by a factor of the monitor's ui scale, + // its actual size by a factor of the monitor's ui scale, // so the window size should be divided by the factor qreal scale_factor = devicePixelRatioF(); int width = vstRect->right - vstRect->left; @@ -77,7 +77,7 @@ void EditorWidget::handleResizeRequest(int, int) if (rec) { // on Windows, the size reported by 'effect' is larger than - // its actuall size by a factor of the monitor's ui scale, + // its actual size by a factor of the monitor's ui scale, // so the window size should be divided by the factor qreal scale_factor = devicePixelRatioF(); int width = rec->right - rec->left;