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
e4922b93
Commit
e4922b93
authored
Feb 23, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Inline init_new_decoded_pad() into pad_added_cb().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2741b6ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
wg_parser.c
dlls/winegstreamer/wg_parser.c
+7
-13
No files found.
dlls/winegstreamer/wg_parser.c
View file @
e4922b93
...
...
@@ -987,13 +987,19 @@ static struct wg_parser_stream *create_stream(struct wg_parser *parser)
return
stream
;
}
static
void
init_new_decoded_pad
(
GstElement
*
element
,
GstPad
*
pad
,
struct
wg_parser
*
par
ser
)
static
void
pad_added_cb
(
GstElement
*
element
,
GstPad
*
pad
,
gpointer
u
ser
)
{
struct
wg_parser
*
parser
=
user
;
struct
wg_parser_stream
*
stream
;
const
char
*
name
;
GstCaps
*
caps
;
int
ret
;
GST_LOG
(
"parser %p, element %p, pad %p."
,
parser
,
element
,
pad
);
if
(
gst_pad_is_linked
(
pad
))
return
;
caps
=
gst_caps_make_writable
(
gst_pad_query_caps
(
pad
,
NULL
));
name
=
gst_structure_get_name
(
gst_caps_get_structure
(
caps
,
0
));
...
...
@@ -1115,18 +1121,6 @@ out:
gst_caps_unref
(
caps
);
}
static
void
pad_added_cb
(
GstElement
*
element
,
GstPad
*
pad
,
gpointer
user
)
{
struct
wg_parser
*
parser
=
user
;
GST_LOG
(
"parser %p, element %p, pad %p."
,
parser
,
element
,
pad
);
if
(
gst_pad_is_linked
(
pad
))
return
;
init_new_decoded_pad
(
element
,
pad
,
parser
);
}
static
void
pad_removed_cb
(
GstElement
*
element
,
GstPad
*
pad
,
gpointer
user
)
{
struct
wg_parser
*
parser
=
user
;
...
...
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