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
c1a4acde
Commit
c1a4acde
authored
Apr 18, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Add more seek entries and fix a time continuity bug.
parent
9d9bf6f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
mpegsplit.c
dlls/quartz/mpegsplit.c
+7
-1
No files found.
dlls/quartz/mpegsplit.c
View file @
c1a4acde
...
...
@@ -53,7 +53,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(quartz);
#define MPEG_AUDIO_HEADER 1
#define MPEG_NO_HEADER 0
#define SEEK_INTERVAL (ULONGLONG)(
30 * 10000000)
/* Add an entry every 3
0 seconds */
#define SEEK_INTERVAL (ULONGLONG)(
10 * 10000000)
/* Add an entry every 1
0 seconds */
struct
seek_entry
{
ULONGLONG
bytepos
;
...
...
@@ -216,6 +216,7 @@ static HRESULT FillBuffer(MPEGSplitterImpl *This, BYTE** fbuf, DWORD *flen, IMed
if
(
This
->
remaining_bytes
)
{
DWORD
towrite
=
min
(
This
->
remaining_bytes
,
*
flen
);
LONGLONG
foo
;
hr
=
copy_data
(
pCurrentSample
,
fbuf
,
flen
,
towrite
);
if
(
FAILED
(
hr
))
...
...
@@ -228,6 +229,11 @@ static HRESULT FillBuffer(MPEGSplitterImpl *This, BYTE** fbuf, DWORD *flen, IMed
if
(
This
->
remaining_bytes
)
return
hr
;
/* Restore the time in the time variable. This->position now points
* to the NEW timestamp which is slightly off
*/
IMediaSample_GetTime
(
pCurrentSample
,
&
time
,
&
foo
);
/* Optimize: Try appending more samples to the stream */
goto
out_append
;
}
...
...
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