summaryrefslogtreecommitdiff
path: root/subprojects
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2024-05-04 11:56:05 +0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2024-05-09 09:56:39 +0000
commite049013db7d690ab528a5cfad06a9adebeb3f4b6 (patch)
tree5a0715157515809951110dd65ae92d51bc6f1fe1 /subprojects
parentfcd7807de8f8d437f2329c134a915b3535767a88 (diff)
play: Mention that gst_play_new() also initialized GStreamer
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6801>
Diffstat (limited to 'subprojects')
-rw-r--r--subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.c3
-rw-r--r--subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c3
2 files changed, 6 insertions, 0 deletions
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 da5546c449..2527aab7cb 100644
--- a/subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.c
+++ b/subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.c
@@ -2760,6 +2760,9 @@ gst_play_init_once (G_GNUC_UNUSED gpointer user_data)
* no special video set up will be done and some default handling will be
* performed.
*
+ * This also initializes GStreamer via `gst_init()` on the first call if this
+ * didn't happen before.
+ *
* Returns: (transfer full): a new #GstPlay instance
* Since: 1.20
*/
diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c b/subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c
index b9f93f8367..ad78731ae4 100644
--- a/subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c
+++ b/subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c
@@ -625,6 +625,9 @@ gst_player_constructed (GObject * object)
* no special video set up will be done and some default handling will be
* performed.
*
+ * This also initializes GStreamer via `gst_init()` on the first call if this
+ * didn't happen before.
+ *
* Returns: (transfer full): a new #GstPlayer instance
*/
GstPlayer *