play: Mention that gst_play_new() also initialized GStreamer

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6801>
This commit is contained in:
Sebastian Dröge 2024-05-04 11:56:05 +03:00 committed by GStreamer Marge Bot
parent fcd7807de8
commit e049013db7
4 changed files with 14 additions and 2 deletions

View file

@ -345,7 +345,10 @@ of its queued messages, thus breaking any possible reference cycle.</doc>
Video is going to be rendered by @video_renderer, or if %NULL is provided
no special video set up will be done and some default handling will be
performed.</doc>
performed.
This also initializes GStreamer via `gst_init()` on the first call if this
didn't happen before.</doc>
<source-position filename="../subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.h"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay.c">a new #GstPlay instance</doc>

View file

@ -337,7 +337,10 @@ passed. See gst_player_g_main_context_signal_dispatcher_new().
Video is going to be rendered by @video_renderer, or if %NULL is provided
no special video set up will be done and some default handling will be
performed.</doc>
performed.
This also initializes GStreamer via `gst_init()` on the first call if this
didn't happen before.</doc>
<source-position filename="../subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.h"/>
<return-value transfer-ownership="full">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c">a new #GstPlayer instance</doc>

View file

@ -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
*/

View file

@ -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 *