gst: hamonise recent Caps function names with Structure counterparts

These functions were introduced as part of the GstIdStr MR:

https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7432

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7644>
This commit is contained in:
François Laignel 2024-10-09 15:45:34 -04:00 committed by GStreamer Marge Bot
parent 5d995382f8
commit 375acaed51
5 changed files with 9 additions and 9 deletions

View file

@ -386,7 +386,7 @@ gst_audio_info_to_caps (const GstAudioInfo * info)
"but no channel positions present");
}
caps = gst_caps_new_simple_static_str ("audio/x-raw",
caps = gst_caps_new_static_str_simple ("audio/x-raw",
"format", G_TYPE_STRING, format,
"layout", G_TYPE_STRING, layout,
"rate", G_TYPE_INT, info->rate,

View file

@ -1070,7 +1070,7 @@ gst_audio_aggregator_sink_setcaps (GstAudioAggregatorPad * aaggpad,
/* Returns NULL if there is no downstream peer */
if (downstream_caps) {
GstCaps *rate_caps =
gst_caps_new_simple_static_str ("audio/x-raw", "rate", G_TYPE_INT,
gst_caps_new_static_str_simple ("audio/x-raw", "rate", G_TYPE_INT,
info.rate,
NULL);

View file

@ -678,7 +678,7 @@ gst_video_info_to_caps (const GstVideoInfo * info)
format = gst_video_format_to_string (info->finfo->format);
g_return_val_if_fail (format != NULL, NULL);
caps = gst_caps_new_simple_static_str ("video/x-raw",
caps = gst_caps_new_static_str_simple ("video/x-raw",
"format", G_TYPE_STRING, format,
"width", G_TYPE_INT, info->width,
"height", G_TYPE_INT, info->height, NULL);

View file

@ -319,7 +319,7 @@ gst_caps_new_empty_simple (const char *media_type)
}
/**
* gst_caps_new_empty_simple_static_str:
* gst_caps_new_static_str_empty_simple:
* @media_type: the media type of the structure
*
* Creates a new #GstCaps that contains one #GstStructure with name
@ -333,7 +333,7 @@ gst_caps_new_empty_simple (const char *media_type)
* Since: 1.26
*/
GstCaps *
gst_caps_new_empty_simple_static_str (const char *media_type)
gst_caps_new_static_str_empty_simple (const char *media_type)
{
GstCaps *caps;
GstStructure *structure;
@ -390,7 +390,7 @@ gst_caps_new_simple (const char *media_type, const char *fieldname, ...)
}
/**
* gst_caps_new_simple_static_str:
* gst_caps_new_static_str_simple:
* @media_type: the media type of the structure
* @fieldname: first field to set
* @...: additional arguments
@ -407,7 +407,7 @@ gst_caps_new_simple (const char *media_type, const char *fieldname, ...)
* Since: 1.26
*/
GstCaps *
gst_caps_new_simple_static_str (const char *media_type, const char *fieldname,
gst_caps_new_static_str_simple (const char *media_type, const char *fieldname,
...)
{
GstCaps *caps;

View file

@ -370,14 +370,14 @@ GST_API
GstCaps * gst_caps_new_empty_simple (const char *media_type) G_GNUC_WARN_UNUSED_RESULT;
GST_API
GstCaps * gst_caps_new_empty_simple_static_str (const char *media_type) G_GNUC_WARN_UNUSED_RESULT;
GstCaps * gst_caps_new_static_str_empty_simple (const char *media_type) G_GNUC_WARN_UNUSED_RESULT;
GST_API
GstCaps * gst_caps_new_simple (const char *media_type,
const char *fieldname,
...) G_GNUC_NULL_TERMINATED G_GNUC_WARN_UNUSED_RESULT;
GST_API
GstCaps * gst_caps_new_simple_static_str (const char *media_type,
GstCaps * gst_caps_new_static_str_simple (const char *media_type,
const char *fieldname,
...) G_GNUC_NULL_TERMINATED G_GNUC_WARN_UNUSED_RESULT;
GST_API