Bruno Jesus : winegstreamer: Avoid a magic number for empty offset.
Alexandre Julliard
julliard at winehq.org
Mon Feb 27 15:12:09 CST 2017
Module: wine
Branch: master
Commit: a8fc94d526e716aa76fdbd75feef57a33bf821ef
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a8fc94d526e716aa76fdbd75feef57a33bf821ef
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Wed Feb 22 23:44:48 2017 -0300
winegstreamer: Avoid a magic number for empty offset.
Signed-off-by: Bruno Jesus <bjesus at codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winegstreamer/gstdemux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 759a5db..3ef2324 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -700,7 +700,7 @@ static GstFlowReturn request_buffer_src(GstPad *pad, GstObject *parent, guint64
TRACE("%p %s %i %p\n", pad, wine_dbgstr_longlong(ofs), len, buf);
*buf = NULL;
- if (ofs == (guint64)-1)
+ if (ofs == GST_BUFFER_OFFSET_NONE)
ofs = This->nextpullofs;
if (ofs >= This->filesize) {
WARN("Reading past eof: %s, %u\n", wine_dbgstr_longlong(ofs), len);
More information about the wine-cvs
mailing list