mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
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
This commit is contained in:
parent
c095dc29fe
commit
0dfb331cfd
1 changed files with 2 additions and 2 deletions
|
@ -1890,7 +1890,7 @@ gen_text_chain (GstPlaySink * playsink)
|
||||||
"queue"), ("rendering might be suboptimal"));
|
"queue"), ("rendering might be suboptimal"));
|
||||||
} else {
|
} else {
|
||||||
g_object_set (G_OBJECT (chain->queue), "max-size-buffers", 3,
|
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);
|
"silent", TRUE, NULL);
|
||||||
gst_bin_add (bin, chain->queue);
|
gst_bin_add (bin, chain->queue);
|
||||||
}
|
}
|
||||||
|
@ -1979,7 +1979,7 @@ gen_text_chain (GstPlaySink * playsink)
|
||||||
"queue"), ("rendering might be suboptimal"));
|
"queue"), ("rendering might be suboptimal"));
|
||||||
} else {
|
} else {
|
||||||
g_object_set (G_OBJECT (element), "max-size-buffers", 3,
|
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);
|
"silent", TRUE, NULL);
|
||||||
gst_bin_add (bin, element);
|
gst_bin_add (bin, element);
|
||||||
if (gst_element_link_pads_full (element, "src", chain->overlay,
|
if (gst_element_link_pads_full (element, "src", chain->overlay,
|
||||||
|
|
Loading…
Reference in a new issue