check the previous flags of playsink to avoid the reconfigure of playsink repeatedly
https://bugzilla.gnome.org/show_bug.cgi?id=749528
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