Zebediah Figura : winegstreamer: Avoid using Wine debug functions in push_data().
Alexandre Julliard
julliard at winehq.org
Thu Jan 28 15:41:40 CST 2021
Module: wine
Branch: master
Commit: f7825f81b622bcc344de9f9994b6d485c8ded6e2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f7825f81b622bcc344de9f9994b6d485c8ded6e2
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Wed Jan 27 16:18:46 2021 -0600
winegstreamer: Avoid using Wine debug functions in push_data().
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winegstreamer/gstdemux.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 1701bf58194..e73693de939 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -829,15 +829,16 @@ static DWORD CALLBACK push_data(LPVOID iface)
GstBuffer *buffer;
LONGLONG maxlen;
+ GST_DEBUG("Starting push thread.");
+
if (!(buffer = gst_buffer_new_allocate(NULL, 16384, NULL)))
{
- ERR("Failed to allocate memory.\n");
+ GST_ERROR("Failed to allocate memory.");
return 0;
}
maxlen = This->stop ? This->stop : This->filesize;
- TRACE("Starting..\n");
for (;;) {
ULONG len;
int ret;
@@ -848,7 +849,7 @@ static DWORD CALLBACK push_data(LPVOID iface)
if ((ret = request_buffer_src(This->my_src, NULL, This->nextofs, len, &buffer)) < 0)
{
- ERR("Failed to read data, ret %s.\n", gst_flow_get_name(ret));
+ GST_ERROR("Failed to read data, ret %s.", gst_flow_get_name(ret));
break;
}
@@ -857,7 +858,7 @@ static DWORD CALLBACK push_data(LPVOID iface)
buffer->duration = buffer->pts = -1;
if ((ret = gst_pad_push(This->my_src, buffer)) < 0)
{
- ERR("Failed to push data, ret %s.\n", gst_flow_get_name(ret));
+ GST_ERROR("Failed to push data, ret %s.", gst_flow_get_name(ret));
break;
}
}
@@ -866,7 +867,7 @@ static DWORD CALLBACK push_data(LPVOID iface)
gst_pad_push_event(This->my_src, gst_event_new_eos());
- TRACE("Stopping.\n");
+ GST_DEBUG("Stopping push thread.");
return 0;
}
More information about the wine-cvs
mailing list