Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
29b35f6b
Commit
29b35f6b
authored
Sep 15, 2023
by
Ziqing Hui
Committed by
Alexandre Julliard
Oct 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Use NTSTATUS value in wg_muxer_create.
parent
729ed419
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
main.c
dlls/winegstreamer/main.c
+6
-2
wg_muxer.c
dlls/winegstreamer/wg_muxer.c
+3
-3
No files found.
dlls/winegstreamer/main.c
View file @
29b35f6b
...
...
@@ -466,13 +466,17 @@ HRESULT wg_muxer_create(const char *format, wg_muxer_t *muxer)
TRACE
(
"format %p, muxer %p.
\n
"
,
format
,
muxer
);
if
(
SUCCEEDED
(
status
=
WINE_UNIX_CALL
(
unix_wg_muxer_create
,
&
params
)))
if
(
!
(
status
=
WINE_UNIX_CALL
(
unix_wg_muxer_create
,
&
params
)))
{
*
muxer
=
params
.
muxer
;
TRACE
(
"Created wg_muxer %#I64x.
\n
"
,
params
.
muxer
);
}
else
{
WARN
(
"Failed to create muxer, status %#lx.
\n
"
,
status
);
}
return
status
;
return
HRESULT_FROM_NT
(
status
)
;
}
void
wg_muxer_destroy
(
wg_muxer_t
muxer
)
...
...
dlls/winegstreamer/wg_muxer.c
View file @
29b35f6b
...
...
@@ -61,14 +61,14 @@ NTSTATUS wg_muxer_create(void *args)
{
struct
wg_muxer_create_params
*
params
=
args
;
GstElement
*
first
=
NULL
,
*
last
=
NULL
;
NTSTATUS
status
=
STATUS_UNSUCCESSFUL
;
GstPadTemplate
*
template
=
NULL
;
GstCaps
*
sink_caps
=
NULL
;
NTSTATUS
status
=
E_FAIL
;
struct
wg_muxer
*
muxer
;
/* Create wg_muxer object. */
if
(
!
(
muxer
=
calloc
(
1
,
sizeof
(
*
muxer
))))
return
E_OUTOF
MEMORY
;
return
STATUS_NO_
MEMORY
;
if
(
!
(
muxer
->
container
=
gst_bin_new
(
"wg_muxer"
)))
goto
out
;
...
...
@@ -110,7 +110,7 @@ NTSTATUS wg_muxer_create(void *args)
GST_INFO
(
"Created winegstreamer muxer %p."
,
muxer
);
params
->
muxer
=
(
wg_transform_t
)(
ULONG_PTR
)
muxer
;
return
S
_OK
;
return
S
TATUS_SUCCESS
;
out:
if
(
muxer
->
my_sink
)
...
...
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