mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
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
This commit is contained in:
parent
df7ef3c35d
commit
1b755eb272
1 changed files with 7 additions and 2 deletions
|
@ -1659,8 +1659,13 @@ gst_play_bin_set_suburi (GstPlayBin * playbin, const gchar * suburi)
|
||||||
static void
|
static void
|
||||||
gst_play_bin_set_flags (GstPlayBin * playbin, GstPlayFlags flags)
|
gst_play_bin_set_flags (GstPlayBin * playbin, GstPlayFlags flags)
|
||||||
{
|
{
|
||||||
gst_play_sink_set_flags (playbin->playsink, flags);
|
GstPlayFlags old_flags;
|
||||||
gst_play_sink_reconfigure (playbin->playsink);
|
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
|
static GstPlayFlags
|
||||||
|
|
Loading…
Reference in a new issue