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
1577c5a8
Commit
1577c5a8
authored
Nov 07, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Forward media time on transform filter.
parent
8c42595c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
gsttffilter.c
dlls/winegstreamer/gsttffilter.c
+12
-0
No files found.
dlls/winegstreamer/gsttffilter.c
View file @
1577c5a8
...
@@ -166,6 +166,14 @@ static GstFlowReturn got_data(GstPad *pad, GstBuffer *buf) {
...
@@ -166,6 +166,14 @@ static GstFlowReturn got_data(GstPad *pad, GstBuffer *buf) {
}
}
else
else
IMediaSample_SetTime
(
sample
,
NULL
,
NULL
);
IMediaSample_SetTime
(
sample
,
NULL
,
NULL
);
if
(
GST_BUFFER_OFFSET_IS_VALID
(
buf
)
&&
GST_BUFFER_OFFSET_END_IS_VALID
(
buf
))
{
tStart
=
buf
->
offset
/
100
;
tStop
=
buf
->
offset_end
/
100
;
IMediaSample_SetMediaTime
(
sample
,
&
tStart
,
&
tStop
);
}
else
IMediaSample_SetMediaTime
(
sample
,
NULL
,
NULL
);
IMediaSample_SetDiscontinuity
(
sample
,
GST_BUFFER_FLAG_IS_SET
(
buf
,
GST_BUFFER_FLAG_DISCONT
));
IMediaSample_SetDiscontinuity
(
sample
,
GST_BUFFER_FLAG_IS_SET
(
buf
,
GST_BUFFER_FLAG_DISCONT
));
IMediaSample_SetPreroll
(
sample
,
GST_BUFFER_FLAG_IS_SET
(
buf
,
GST_BUFFER_FLAG_PREROLL
));
IMediaSample_SetPreroll
(
sample
,
GST_BUFFER_FLAG_IS_SET
(
buf
,
GST_BUFFER_FLAG_PREROLL
));
...
@@ -232,6 +240,10 @@ static HRESULT WINAPI Gstreamer_transform_ProcessData(TransformFilter *iface, IM
...
@@ -232,6 +240,10 @@ static HRESULT WINAPI Gstreamer_transform_ProcessData(TransformFilter *iface, IM
if
(
hr
==
S_OK
)
if
(
hr
==
S_OK
)
buf
->
duration
=
(
tStop
-
tStart
)
*
100
;
buf
->
duration
=
(
tStop
-
tStart
)
*
100
;
}
}
if
(
IMediaSample_GetMediaTime
(
sample
,
&
tStart
,
&
tStop
)
==
S_OK
)
{
buf
->
offset
=
tStart
*
100
;
buf
->
offset_end
=
tStop
*
100
;
}
if
(
IMediaSample_IsDiscontinuity
(
sample
)
==
S_OK
)
if
(
IMediaSample_IsDiscontinuity
(
sample
)
==
S_OK
)
GST_BUFFER_FLAG_SET
(
buf
,
GST_BUFFER_FLAG_DISCONT
);
GST_BUFFER_FLAG_SET
(
buf
,
GST_BUFFER_FLAG_DISCONT
);
if
(
IMediaSample_IsPreroll
(
sample
)
==
S_OK
)
if
(
IMediaSample_IsPreroll
(
sample
)
==
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