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
ebc8a459
Commit
ebc8a459
authored
Oct 27, 2023
by
Ziqing Hui
Committed by
Alexandre Julliard
Oct 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Use gst_element_get_compatible_pad.
gst_element_get_compatible_pad supports request pad.
parent
0c84f713
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
unixlib.c
dlls/winegstreamer/unixlib.c
+6
-8
No files found.
dlls/winegstreamer/unixlib.c
View file @
ebc8a459
...
...
@@ -181,11 +181,10 @@ bool link_src_to_element(GstPad *src_pad, GstElement *element)
GstPadLinkReturn
ret
;
GstPad
*
sink_pad
;
if
(
!
(
sink_pad
=
gst_element_get_
static_pad
(
element
,
"sink"
)))
if
(
!
(
sink_pad
=
gst_element_get_
compatible_pad
(
element
,
src_pad
,
NULL
)))
{
gchar
*
name
=
gst_element_get_name
(
element
);
GST_ERROR
(
"Failed to find sink pad on %s"
,
name
);
g_free
(
name
);
GST_ERROR
(
"Failed to find sink pad compatible to %"
GST_PTR_FORMAT
" on %"
GST_PTR_FORMAT
"."
,
src_pad
,
element
);
return
false
;
}
ret
=
link_src_to_sink
(
src_pad
,
sink_pad
);
...
...
@@ -198,11 +197,10 @@ bool link_element_to_sink(GstElement *element, GstPad *sink_pad)
GstPadLinkReturn
ret
;
GstPad
*
src_pad
;
if
(
!
(
src_pad
=
gst_element_get_
static_pad
(
element
,
"src"
)))
if
(
!
(
src_pad
=
gst_element_get_
compatible_pad
(
element
,
sink_pad
,
NULL
)))
{
gchar
*
name
=
gst_element_get_name
(
element
);
GST_ERROR
(
"Failed to find src pad on %s"
,
name
);
g_free
(
name
);
GST_ERROR
(
"Failed to find src pad compatible to %"
GST_PTR_FORMAT
" on %"
GST_PTR_FORMAT
"."
,
sink_pad
,
element
);
return
false
;
}
ret
=
link_src_to_sink
(
src_pad
,
sink_pad
);
...
...
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