winegstreamer: Set specific large buffer sizes for decodebin.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrew Eikum 2021-03-18 10:50:55 -05:00 committed by Alexandre Julliard
parent 4bb337fb63
commit 9152bdcef3
1 changed files with 3 additions and 3 deletions

View File

@ -546,9 +546,9 @@ static void CDECL wg_parser_complete_read_request(struct wg_parser *parser, bool
static void CDECL wg_parser_set_unlimited_buffering(struct wg_parser *parser) static void CDECL wg_parser_set_unlimited_buffering(struct wg_parser *parser)
{ {
g_object_set(parser->decodebin, "max-size-buffers", 0, NULL); g_object_set(parser->decodebin, "max-size-buffers", G_MAXUINT, NULL);
g_object_set(parser->decodebin, "max-size-time", G_GUINT64_CONSTANT(0), NULL); g_object_set(parser->decodebin, "max-size-time", G_MAXUINT64, NULL);
g_object_set(parser->decodebin, "max-size-bytes", 0, NULL); g_object_set(parser->decodebin, "max-size-bytes", G_MAXUINT, NULL);
} }
static void CDECL wg_parser_stream_get_preferred_format(struct wg_parser_stream *stream, struct wg_format *format) static void CDECL wg_parser_stream_get_preferred_format(struct wg_parser_stream *stream, struct wg_format *format)