From: eunhae choi Date: Mon, 18 May 2015 06:45:01 +0000 (+0900) Subject: playbin: check the flags before set again X-Git-Tag: 1.19.3~511^2~3636 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b755eb272f4fd3cd9d5d31cc61927520fe033ff;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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