From 1b755eb272f4fd3cd9d5d31cc61927520fe033ff Mon Sep 17 00:00:00 2001 From: eunhae choi Date: Mon, 18 May 2015 15:45:01 +0900 Subject: [PATCH] playbin: check the flags before set again check the previous flags of playsink to avoid the reconfigure of playsink repeatedly https://bugzilla.gnome.org/show_bug.cgi?id=749528 --- gst/playback/gstplaybin2.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 0185290..a535f6f 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -1659,8 +1659,13 @@ gst_play_bin_set_suburi (GstPlayBin * playbin, const gchar * suburi) static void gst_play_bin_set_flags (GstPlayBin * playbin, GstPlayFlags flags) { - gst_play_sink_set_flags (playbin->playsink, flags); - gst_play_sink_reconfigure (playbin->playsink); + GstPlayFlags old_flags; + old_flags = gst_play_sink_get_flags (playbin->playsink); + + if (flags != old_flags) { + gst_play_sink_set_flags (playbin->playsink, flags); + gst_play_sink_reconfigure (playbin->playsink); + } } static GstPlayFlags -- 2.7.4