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
5dcf77d8
Commit
5dcf77d8
authored
Jun 13, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Remove copying support from wg_transform_push_data.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
parent
ca0719f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
17 deletions
+8
-17
gst_private.h
dlls/winegstreamer/gst_private.h
+0
-3
unixlib.h
dlls/winegstreamer/unixlib.h
+0
-2
wg_sample.c
dlls/winegstreamer/wg_sample.c
+7
-1
wg_transform.c
dlls/winegstreamer/wg_transform.c
+1
-11
No files found.
dlls/winegstreamer/gst_private.h
View file @
5dcf77d8
...
...
@@ -102,9 +102,6 @@ void wg_parser_stream_seek(struct wg_parser_stream *stream, double rate,
struct
wg_transform
*
wg_transform_create
(
const
struct
wg_format
*
input_format
,
const
struct
wg_format
*
output_format
);
void
wg_transform_destroy
(
struct
wg_transform
*
transform
);
HRESULT
wg_transform_push_data
(
struct
wg_transform
*
transform
,
struct
wg_sample
*
sample
);
HRESULT
wg_transform_read_data
(
struct
wg_transform
*
transform
,
struct
wg_sample
*
sample
,
struct
wg_format
*
format
);
unsigned
int
wg_format_get_max_size
(
const
struct
wg_format
*
format
);
...
...
dlls/winegstreamer/unixlib.h
View file @
5dcf77d8
...
...
@@ -121,8 +121,6 @@ enum wg_sample_flag
WG_SAMPLE_FLAG_HAS_PTS
=
2
,
WG_SAMPLE_FLAG_HAS_DURATION
=
4
,
WG_SAMPLE_FLAG_SYNC_POINT
=
8
,
WG_SAMPLE_FLAG_HAS_REFCOUNT
=
0x10000
,
/* sample is queued on the client side and may be wrapped */
};
struct
wg_sample
...
...
dlls/winegstreamer/wg_sample.c
View file @
5dcf77d8
...
...
@@ -185,7 +185,6 @@ static void wg_sample_queue_begin_append(struct wg_sample_queue *queue, struct w
/* make sure a concurrent wg_sample_queue_flush call won't release the sample until we're done */
InterlockedIncrement
(
&
wg_sample
->
refcount
);
sample
->
wg_sample
.
flags
|=
WG_SAMPLE_FLAG_HAS_REFCOUNT
;
EnterCriticalSection
(
&
queue
->
cs
);
list_add_tail
(
&
queue
->
samples
,
&
sample
->
entry
);
...
...
@@ -245,6 +244,13 @@ void wg_sample_queue_destroy(struct wg_sample_queue *queue)
free
(
queue
);
}
/* These unixlib entry points should not be used directly, they assume samples
* to be queued and zero-copy support, use the helpers below instead.
*/
HRESULT
wg_transform_push_data
(
struct
wg_transform
*
transform
,
struct
wg_sample
*
sample
);
HRESULT
wg_transform_read_data
(
struct
wg_transform
*
transform
,
struct
wg_sample
*
sample
,
struct
wg_format
*
format
);
HRESULT
wg_transform_push_mf
(
struct
wg_transform
*
transform
,
struct
wg_sample
*
wg_sample
,
struct
wg_sample_queue
*
queue
)
{
...
...
dlls/winegstreamer/wg_transform.c
View file @
5dcf77d8
...
...
@@ -542,17 +542,7 @@ NTSTATUS wg_transform_push_data(void *args)
return
STATUS_SUCCESS
;
}
if
(
!
(
sample
->
flags
&
WG_SAMPLE_FLAG_HAS_REFCOUNT
))
{
if
(
!
(
buffer
=
gst_buffer_new_and_alloc
(
sample
->
size
)))
{
GST_ERROR
(
"Failed to allocate input buffer"
);
return
STATUS_NO_MEMORY
;
}
gst_buffer_fill
(
buffer
,
0
,
sample
->
data
,
sample
->
size
);
GST_INFO
(
"Copied %u bytes from sample %p to buffer %p"
,
sample
->
size
,
sample
,
buffer
);
}
else
if
(
!
(
buffer
=
gst_buffer_new_wrapped_full
(
GST_MEMORY_FLAG_READONLY
,
sample
->
data
,
sample
->
max_size
,
if
(
!
(
buffer
=
gst_buffer_new_wrapped_full
(
GST_MEMORY_FLAG_READONLY
,
sample
->
data
,
sample
->
max_size
,
0
,
sample
->
size
,
sample
,
wg_sample_free_notify
)))
{
GST_ERROR
(
"Failed to allocate input buffer"
);
...
...
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