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
82d4fa9f
Commit
82d4fa9f
authored
Feb 17, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Access the stream duration through a Unix library function.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9a6aa56c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
gst_private.h
dlls/winegstreamer/gst_private.h
+2
-0
gstdemux.c
dlls/winegstreamer/gstdemux.c
+1
-1
wg_parser.c
dlls/winegstreamer/wg_parser.c
+6
-0
No files found.
dlls/winegstreamer/gst_private.h
View file @
82d4fa9f
...
...
@@ -245,6 +245,8 @@ struct unix_funcs
void
(
CDECL
*
wg_parser_stream_notify_qos
)(
struct
wg_parser_stream
*
stream
,
bool
underflow
,
double
proportion
,
int64_t
diff
,
uint64_t
timestamp
);
/* Returns the duration in 100-nanosecond units. */
uint64_t
(
CDECL
*
wg_parser_stream_get_duration
)(
struct
wg_parser_stream
*
stream
);
/* start_pos and stop_pos are in 100-nanosecond units. */
bool
(
CDECL
*
wg_parser_stream_seek
)(
struct
wg_parser_stream
*
stream
,
double
rate
,
uint64_t
start_pos
,
uint64_t
stop_pos
,
DWORD
start_flags
,
DWORD
stop_flags
);
...
...
dlls/winegstreamer/gstdemux.c
View file @
82d4fa9f
...
...
@@ -977,7 +977,7 @@ static HRESULT parser_sink_connect(struct strmbase_sink *iface, IPin *peer, cons
{
struct
parser_source
*
pin
=
filter
->
sources
[
i
];
pin
->
seek
.
llDuration
=
pin
->
seek
.
llStop
=
pin
->
wg_stream
->
duration
;
pin
->
seek
.
llDuration
=
pin
->
seek
.
llStop
=
unix_funcs
->
wg_parser_stream_get_duration
(
pin
->
wg_stream
)
;
pin
->
seek
.
llCurrent
=
0
;
}
...
...
dlls/winegstreamer/wg_parser.c
View file @
82d4fa9f
...
...
@@ -492,6 +492,11 @@ static void CDECL wg_parser_stream_release_buffer(struct wg_parser_stream *strea
pthread_cond_signal
(
&
stream
->
event_empty_cond
);
}
static
uint64_t
CDECL
wg_parser_stream_get_duration
(
struct
wg_parser_stream
*
stream
)
{
return
stream
->
duration
;
}
static
bool
CDECL
wg_parser_stream_seek
(
struct
wg_parser_stream
*
stream
,
double
rate
,
uint64_t
start_pos
,
uint64_t
stop_pos
,
DWORD
start_flags
,
DWORD
stop_flags
)
{
...
...
@@ -1724,6 +1729,7 @@ static const struct unix_funcs funcs =
wg_parser_stream_release_buffer
,
wg_parser_stream_notify_qos
,
wg_parser_stream_get_duration
,
wg_parser_stream_seek
,
};
...
...
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