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
2ea8f8a4
Commit
2ea8f8a4
authored
Jan 16, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineqtdecoder: Improve and differentiate Sample Time and MediaTime.
parent
3ef34d77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+8
-10
No files found.
dlls/wineqtdecoder/qtsplitter.c
View file @
2ea8f8a4
...
...
@@ -467,6 +467,7 @@ static DWORD WINAPI QTSplitter_thread(LPVOID data)
do
{
LONGLONG
tStart
=
0
,
tStop
=
0
;
LONGLONG
mStart
=
0
,
mStop
=
0
;
float
time
;
GetMovieNextInterestingTime
(
This
->
pQTMovie
,
nextTimeStep
,
0
,
NULL
,
movie_time
,
1
,
&
next_time
,
NULL
);
...
...
@@ -485,6 +486,9 @@ static DWORD WINAPI QTSplitter_thread(LPVOID data)
TRACE
(
"In loop at time %ld
\n
"
,
movie_time
);
TRACE
(
"In Next time %ld
\n
"
,
next_time
);
mStart
=
movie_time
;
mStop
=
next_time
;
time
=
(
float
)
movie_time
/
tr
.
scale
;
tStart
=
time
*
10000000
;
time
=
(
float
)
next_time
/
tr
.
scale
;
...
...
@@ -539,11 +543,8 @@ static DWORD WINAPI QTSplitter_thread(LPVOID data)
IMediaSample_SetActualDataLength
(
sample
,
frames
*
pvi
->
nBlockAlign
);
IMediaSample_SetMediaTime
(
sample
,
&
tStart
,
&
tStop
);
if
(
tStart
)
IMediaSample_SetTime
(
sample
,
&
tStart
,
&
tStop
);
else
IMediaSample_SetTime
(
sample
,
NULL
,
NULL
);
IMediaSample_SetMediaTime
(
sample
,
&
mStart
,
&
mStop
);
IMediaSample_SetTime
(
sample
,
&
tStart
,
&
tStop
);
hr
=
OutputQueue_Receive
(
This
->
pAudio_Pin
->
queue
,
sample
);
TRACE
(
"Audio Delivered (%x)
\n
"
,
hr
);
...
...
@@ -597,11 +598,8 @@ audio_error:
IMediaSample_SetActualDataLength
(
sample
,
This
->
outputSize
);
IMediaSample_SetMediaTime
(
sample
,
&
tStart
,
&
tStop
);
if
(
tStart
)
IMediaSample_SetTime
(
sample
,
&
tStart
,
&
tStop
);
else
IMediaSample_SetTime
(
sample
,
NULL
,
NULL
);
IMediaSample_SetMediaTime
(
sample
,
&
mStart
,
&
mStop
);
IMediaSample_SetTime
(
sample
,
&
tStart
,
&
tStop
);
hr
=
OutputQueue_Receive
(
This
->
pVideo_Pin
->
queue
,
sample
);
TRACE
(
"Video Delivered (%x)
\n
"
,
hr
);
...
...
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