mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
libgstplay: Use playbin3 by default
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6120>
This commit is contained in:
parent
499474a76d
commit
d26194db0e
2 changed files with 9 additions and 5 deletions
|
@ -312,8 +312,9 @@ from the ground-up, GstPlay provides the features you will most likely need.
|
|||
|
||||
An example player is available in gst-examples/playback/player/gst-play/.
|
||||
|
||||
Internally the GstPlay makes use of the `playbin` element. `playbin3` can be
|
||||
selected if the `GST_PLAY_USE_PLAYBIN3=1` environment variable has been set.
|
||||
Internally the GstPlay makes use of the `playbin3` element. The legacy
|
||||
`playbin2` can be selected if the `GST_PLAY_USE_PLAYBIN3=0` environment
|
||||
variable has been set.
|
||||
|
||||
**Important note**: If your application relies on the GstBus to get
|
||||
notifications from GstPlay, you need to add some explicit clean-up code in
|
||||
|
|
|
@ -34,8 +34,9 @@
|
|||
*
|
||||
* An example player is available in gst-examples/playback/player/gst-play/.
|
||||
*
|
||||
* Internally the GstPlay makes use of the `playbin` element. `playbin3` can be
|
||||
* selected if the `GST_PLAY_USE_PLAYBIN3=1` environment variable has been set.
|
||||
* Internally the GstPlay makes use of the `playbin3` element. The legacy
|
||||
* `playbin2` can be selected if the `GST_PLAY_USE_PLAYBIN3=0` environment
|
||||
* variable has been set.
|
||||
*
|
||||
* **Important note**: If your application relies on the GstBus to get
|
||||
* notifications from GstPlay, you need to add some explicit clean-up code in
|
||||
|
@ -2578,7 +2579,9 @@ gst_play_main (gpointer data)
|
|||
g_source_unref (source);
|
||||
|
||||
env = g_getenv ("GST_PLAY_USE_PLAYBIN3");
|
||||
if (env && g_str_has_prefix (env, "1"))
|
||||
if (env && g_str_has_prefix (env, "0"))
|
||||
self->use_playbin3 = FALSE;
|
||||
else
|
||||
self->use_playbin3 = TRUE;
|
||||
|
||||
if (self->use_playbin3) {
|
||||
|
|
Loading…
Reference in a new issue