mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
gst-play: Default to using playbin3
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6115>
This commit is contained in:
parent
91317aacaf
commit
144657dc0d
1 changed files with 10 additions and 8 deletions
|
@ -200,10 +200,6 @@ play_new (gchar ** uris, const gchar * audio_sink, const gchar * video_sink,
|
||||||
|
|
||||||
if (use_playbin3) {
|
if (use_playbin3) {
|
||||||
play->is_playbin3 = TRUE;
|
play->is_playbin3 = TRUE;
|
||||||
} else {
|
|
||||||
const gchar *env = g_getenv ("USE_PLAYBIN3");
|
|
||||||
if (env && g_str_has_prefix (env, "1"))
|
|
||||||
play->is_playbin3 = TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_mutex_init (&play->selection_lock);
|
g_mutex_init (&play->selection_lock);
|
||||||
|
@ -1613,7 +1609,8 @@ real_main (int argc, char **argv)
|
||||||
GError *err = NULL;
|
GError *err = NULL;
|
||||||
GOptionContext *ctx;
|
GOptionContext *ctx;
|
||||||
gchar *playlist_file = NULL;
|
gchar *playlist_file = NULL;
|
||||||
gboolean use_playbin3 = FALSE;
|
gboolean use_playbin3 = TRUE;
|
||||||
|
gboolean use_playbin2 = FALSE;
|
||||||
gboolean no_position = FALSE;
|
gboolean no_position = FALSE;
|
||||||
#ifdef HAVE_WINMM
|
#ifdef HAVE_WINMM
|
||||||
guint winmm_timer_resolution = 0;
|
guint winmm_timer_resolution = 0;
|
||||||
|
@ -1653,9 +1650,11 @@ real_main (int argc, char **argv)
|
||||||
NULL},
|
NULL},
|
||||||
{"quiet", 'q', 0, G_OPTION_ARG_NONE, &quiet,
|
{"quiet", 'q', 0, G_OPTION_ARG_NONE, &quiet,
|
||||||
N_("Do not print any output (apart from errors)"), NULL},
|
N_("Do not print any output (apart from errors)"), NULL},
|
||||||
{"use-playbin3", 0, 0, G_OPTION_ARG_NONE, &use_playbin3,
|
{"use-playbin3", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &use_playbin3,
|
||||||
N_("Use playbin3 pipeline "
|
N_("Use playbin3 pipeline (default)"),
|
||||||
"(default varies depending on 'USE_PLAYBIN' env variable)"),
|
NULL},
|
||||||
|
{"use-playbin2", 0, 0, G_OPTION_ARG_NONE, &use_playbin2,
|
||||||
|
N_("Use playbin2 pipeline"),
|
||||||
NULL},
|
NULL},
|
||||||
{"wait-on-eos", 0, 0, G_OPTION_ARG_NONE, &wait_on_eos,
|
{"wait-on-eos", 0, 0, G_OPTION_ARG_NONE, &wait_on_eos,
|
||||||
N_
|
N_
|
||||||
|
@ -1702,6 +1701,9 @@ real_main (int argc, char **argv)
|
||||||
argc = g_strv_length (argv);
|
argc = g_strv_length (argv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (use_playbin2)
|
||||||
|
use_playbin3 = FALSE;
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (play_debug, "play", 0, "gst-play");
|
GST_DEBUG_CATEGORY_INIT (play_debug, "play", 0, "gst-play");
|
||||||
|
|
||||||
if (print_version) {
|
if (print_version) {
|
||||||
|
|
Loading…
Reference in a new issue