Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f7825f81
Commit
f7825f81
authored
Jan 27, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Avoid using Wine debug functions in push_data().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b5f0b790
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
gstdemux.c
dlls/winegstreamer/gstdemux.c
+6
-5
No files found.
dlls/winegstreamer/gstdemux.c
View file @
f7825f81
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment