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
2c9f6466
Commit
2c9f6466
authored
Oct 20, 2023
by
Alfred Agrell
Committed by
Alexandre Julliard
Nov 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Clamp QoS events to stay inside the stream's running time.
parent
c36af9e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
wg_parser.c
dlls/winegstreamer/wg_parser.c
+4
-1
No files found.
dlls/winegstreamer/wg_parser.c
View file @
2c9f6466
...
...
@@ -461,6 +461,7 @@ static NTSTATUS wg_parser_stream_notify_qos(void *args)
{
const
struct
wg_parser_stream_notify_qos_params
*
params
=
args
;
struct
wg_parser_stream
*
stream
=
get_stream
(
params
->
stream
);
GstClockTimeDiff
diff
=
params
->
diff
*
100
;
GstClockTime
stream_time
;
GstEvent
*
event
;
...
...
@@ -468,6 +469,8 @@ static NTSTATUS wg_parser_stream_notify_qos(void *args)
* file (or other medium), but gst_event_new_qos() expects the timestamp in
* running time. */
stream_time
=
gst_segment_to_running_time
(
&
stream
->
segment
,
GST_FORMAT_TIME
,
params
->
timestamp
*
100
);
if
(
diff
<
(
GstClockTimeDiff
)
-
stream_time
)
diff
=
-
stream_time
;
if
(
stream_time
==
-
1
)
{
/* This can happen legitimately if the sample falls outside of the
...
...
@@ -478,7 +481,7 @@ static NTSTATUS wg_parser_stream_notify_qos(void *args)
}
if
(
!
(
event
=
gst_event_new_qos
(
params
->
underflow
?
GST_QOS_TYPE_UNDERFLOW
:
GST_QOS_TYPE_OVERFLOW
,
params
->
proportion
,
params
->
diff
*
100
,
stream_time
)))
params
->
proportion
,
diff
,
stream_time
)))
GST_ERROR
(
"Failed to create QOS event.
\n
"
);
push_event
(
stream
->
my_sink
,
event
);
...
...
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