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
ced2b4c6
Commit
ced2b4c6
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: Seek to end of stream instead of to stream duration.
parent
2c9f6466
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
wg_parser.c
dlls/winegstreamer/wg_parser.c
+6
-2
No files found.
dlls/winegstreamer/wg_parser.c
View file @
ced2b4c6
...
...
@@ -436,8 +436,11 @@ static NTSTATUS wg_parser_stream_seek(void *args)
const
struct
wg_parser_stream_seek_params
*
params
=
args
;
DWORD
start_flags
=
params
->
start_flags
;
DWORD
stop_flags
=
params
->
stop_flags
;
const
struct
wg_parser_stream
*
stream
;
GstSeekFlags
flags
=
0
;
stream
=
get_stream
(
params
->
stream
);
if
(
start_flags
&
AM_SEEKING_SeekToKeyFrame
)
flags
|=
GST_SEEK_FLAG_KEY_UNIT
;
if
(
start_flags
&
AM_SEEKING_Segment
)
...
...
@@ -450,8 +453,9 @@ static NTSTATUS wg_parser_stream_seek(void *args)
if
((
stop_flags
&
AM_SEEKING_PositioningBitsMask
)
==
AM_SEEKING_NoPositioning
)
stop_type
=
GST_SEEK_TYPE_NONE
;
if
(
!
push_event
(
get_stream
(
params
->
stream
)
->
my_sink
,
gst_event_new_seek
(
params
->
rate
,
GST_FORMAT_TIME
,
flags
,
start_type
,
params
->
start_pos
*
100
,
stop_type
,
params
->
stop_pos
*
100
)))
if
(
!
push_event
(
stream
->
my_sink
,
gst_event_new_seek
(
params
->
rate
,
GST_FORMAT_TIME
,
flags
,
start_type
,
params
->
start_pos
*
100
,
stop_type
,
params
->
stop_pos
==
stream
->
duration
?
-
1
:
params
->
stop_pos
*
100
)))
GST_ERROR
(
"Failed to seek.
\n
"
);
return
S_OK
;
...
...
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