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
c911893e
Commit
c911893e
authored
Dec 03, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Make sure size is set correctly before delivering buffers.
parent
4416ef9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
gstdemux.c
dlls/winegstreamer/gstdemux.c
+1
-1
gsttffilter.c
dlls/winegstreamer/gsttffilter.c
+1
-0
No files found.
dlls/winegstreamer/gstdemux.c
View file @
c911893e
...
...
@@ -533,10 +533,10 @@ static GstFlowReturn got_data_sink(GstPad *pad, GstBuffer *buf) {
return
GST_FLOW_WRONG_STATE
;
}
FIXME
(
"Did not get a GST_APP_BUFFER, creating a sample
\n
"
);
IMediaSample_SetActualDataLength
(
sample
,
GST_BUFFER_SIZE
(
buf
));
IMediaSample_GetPointer
(
sample
,
&
ptr
);
memcpy
(
ptr
,
GST_BUFFER_DATA
(
buf
),
GST_BUFFER_SIZE
(
buf
));
}
IMediaSample_SetActualDataLength
(
sample
,
GST_BUFFER_SIZE
(
buf
));
if
(
GST_BUFFER_TIMESTAMP_IS_VALID
(
buf
))
{
REFERENCE_TIME
rtStart
=
gst_segment_to_running_time
(
pin
->
segment
,
GST_FORMAT_TIME
,
buf
->
timestamp
);
...
...
dlls/winegstreamer/gsttffilter.c
View file @
c911893e
...
...
@@ -178,6 +178,7 @@ static GstFlowReturn got_data(GstPad *pad, GstBuffer *buf) {
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_SetSyncPoint
(
sample
,
!
GST_BUFFER_FLAG_IS_SET
(
buf
,
GST_BUFFER_FLAG_DELTA_UNIT
));
IMediaSample_SetActualDataLength
(
sample
,
GST_BUFFER_SIZE
(
buf
));
hr
=
BaseOutputPinImpl_Deliver
((
BaseOutputPin
*
)
This
->
tf
.
ppPins
[
1
],
sample
);
gst_buffer_unref
(
buf
);
...
...
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