From 476a34cfdb90bd008395c4e38b58670ffc7b83a5 Mon Sep 17 00:00:00 2001 From: naglis <341855-naglis@users.noreply.gitlab.freedesktop.org> Date: Thu, 22 Feb 2024 09:41:00 +0200 Subject: [PATCH] gstplay: Fix typos in documentation Part-of: --- girs/GstPlay-1.0.gir | 14 +++++++------- .../gst-plugins-bad/gst-libs/gst/play/gstplay.c | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/girs/GstPlay-1.0.gir b/girs/GstPlay-1.0.gir index 3e779b0e54..d23dfd923e 100644 --- a/girs/GstPlay-1.0.gir +++ b/girs/GstPlay-1.0.gir @@ -435,8 +435,8 @@ This option is disabled by default. - set desired interval in milliseconds between two position-updated messages. -pass 0 to stop updating the position. + Set desired interval in milliseconds between two position-updated messages. +Pass 0 to stop updating the position. @@ -547,7 +547,7 @@ matching #GstPlayVideoInfo. - A #gboolean indicating wheter the passes message represents a #GstPlay message or not. + A #gboolean indicating whether the passed message represents a #GstPlay message or not. @@ -835,7 +835,7 @@ currently-playing stream. - current subtitle URI + Current subtitle URI URI of the current external subtitle. @@ -880,7 +880,7 @@ currently-playing stream. g_free() after usage. Get a snapshot of the currently selected video stream, if any. The format can be -selected with @format and optional configuration is possible with @config +selected with @format and optional configuration is possible with @config. Currently supported settings are: - width, height of type G_TYPE_INT - pixel-aspect-ratio of type GST_TYPE_FRACTION @@ -1055,7 +1055,7 @@ value. Set the configuration of the play. If the play is already configured, and -the configuration haven't change, this function will return %TRUE. If the +the configuration hasn't changed, this function will return %TRUE. If the play is not in the GST_PLAY_STATE_STOPPED, this method will return %FALSE and active configuration will remain. @@ -1277,7 +1277,7 @@ Sets the video track @stream_index. - %TRUE if the visualizations was set correctly. Otherwise, + %TRUE if the visualization was set correctly. Otherwise, %FALSE. diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.c b/subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.c index cc8ac28db5..a88e4c302e 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.c @@ -3250,7 +3250,7 @@ gst_play_set_subtitle_uri (GstPlay * self, const gchar * suburi) * gst_play_get_subtitle_uri: * @play: #GstPlay instance * - * current subtitle URI + * Current subtitle URI * * Returns: (transfer full) (nullable): URI of the current external subtitle. * g_free() after usage. @@ -3752,7 +3752,7 @@ gst_play_set_subtitle_track_enabled (GstPlay * self, gboolean enabled) * @name: (nullable): visualization element obtained from * #gst_play_visualizations_get() * - * Returns: %TRUE if the visualizations was set correctly. Otherwise, + * Returns: %TRUE if the visualization was set correctly. Otherwise, * %FALSE. * Since: 1.20 */ @@ -4332,7 +4332,7 @@ gst_play_error_get_name (GstPlayError error) * @config: (transfer full): a #GstStructure * * Set the configuration of the play. If the play is already configured, and - * the configuration haven't change, this function will return %TRUE. If the + * the configuration hasn't changed, this function will return %TRUE. If the * play is not in the GST_PLAY_STATE_STOPPED, this method will return %FALSE * and active configuration will remain. * @@ -4443,8 +4443,8 @@ gst_play_config_get_user_agent (const GstStructure * config) * @config: a #GstPlay configuration * @interval: interval in ms * - * set desired interval in milliseconds between two position-updated messages. - * pass 0 to stop updating the position. + * Set desired interval in milliseconds between two position-updated messages. + * Pass 0 to stop updating the position. * Since: 1.20 */ void @@ -4578,7 +4578,7 @@ gst_play_config_get_pipeline_dump_in_error_details (const GstStructure * config) * @config: (allow-none): Additional configuration * * Get a snapshot of the currently selected video stream, if any. The format can be - * selected with @format and optional configuration is possible with @config + * selected with @format and optional configuration is possible with @config. * Currently supported settings are: * - width, height of type G_TYPE_INT * - pixel-aspect-ratio of type GST_TYPE_FRACTION @@ -4672,7 +4672,7 @@ gst_play_get_video_snapshot (GstPlay * self, * gst_play_is_play_message: * @msg: A #GstMessage * - * Returns: A #gboolean indicating wheter the passes message represents a #GstPlay message or not. + * Returns: A #gboolean indicating whether the passed message represents a #GstPlay message or not. * * Since: 1.20 */