From 0dfb331cfd9e8fe92a461f51b6371f2d866ef187 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 14 May 2012 11:52:12 -0300 Subject: [PATCH] playsink: do not store more than a second of subtitles Use a shorter queue for subtitles to avoid switches for subtitles taking longer than they already take. https://bugzilla.gnome.org/show_bug.cgi?id=638168 --- gst/playback/gstplaysink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index b772ba32aa..24872a67ff 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -1890,7 +1890,7 @@ gen_text_chain (GstPlaySink * playsink) "queue"), ("rendering might be suboptimal")); } else { g_object_set (G_OBJECT (chain->queue), "max-size-buffers", 3, - "max-size-bytes", 0, "max-size-time", (gint64) 0, + "max-size-bytes", 0, "max-size-time", (gint64) GST_SECOND, "silent", TRUE, NULL); gst_bin_add (bin, chain->queue); } @@ -1979,7 +1979,7 @@ gen_text_chain (GstPlaySink * playsink) "queue"), ("rendering might be suboptimal")); } else { g_object_set (G_OBJECT (element), "max-size-buffers", 3, - "max-size-bytes", 0, "max-size-time", (gint64) 0, + "max-size-bytes", 0, "max-size-time", (gint64) GST_SECOND, "silent", TRUE, NULL); gst_bin_add (bin, element); if (gst_element_link_pads_full (element, "src", chain->overlay,