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
68f0cc4a
Commit
68f0cc4a
authored
Feb 10, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Pass a wg_parser pointer to signal callbacks.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c46505c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
17 deletions
+14
-17
gstdemux.c
dlls/winegstreamer/gstdemux.c
+14
-17
No files found.
dlls/winegstreamer/gstdemux.c
View file @
68f0cc4a
...
@@ -1552,12 +1552,11 @@ static DWORD CALLBACK read_thread(void *arg)
...
@@ -1552,12 +1552,11 @@ static DWORD CALLBACK read_thread(void *arg)
static
void
removed_decoded_pad
(
GstElement
*
bin
,
GstPad
*
pad
,
gpointer
user
)
static
void
removed_decoded_pad
(
GstElement
*
bin
,
GstPad
*
pad
,
gpointer
user
)
{
{
struct
parser
*
filter
=
user
;
struct
wg_parser
*
parser
=
user
;
struct
wg_parser
*
parser
=
filter
->
wg_parser
;
unsigned
int
i
;
unsigned
int
i
;
char
*
name
;
char
*
name
;
GST_LOG
(
"
filter %p, bin %p, pad %p."
,
filt
er
,
bin
,
pad
);
GST_LOG
(
"
parser %p, bin %p, pad %p."
,
pars
er
,
bin
,
pad
);
for
(
i
=
0
;
i
<
parser
->
stream_count
;
++
i
)
for
(
i
=
0
;
i
<
parser
->
stream_count
;
++
i
)
{
{
...
@@ -1582,9 +1581,8 @@ static void removed_decoded_pad(GstElement *bin, GstPad *pad, gpointer user)
...
@@ -1582,9 +1581,8 @@ static void removed_decoded_pad(GstElement *bin, GstPad *pad, gpointer user)
static
void
free_stream
(
struct
wg_parser_stream
*
stream
);
static
void
free_stream
(
struct
wg_parser_stream
*
stream
);
static
void
init_new_decoded_pad
(
GstElement
*
bin
,
GstPad
*
pad
,
struct
parser
*
This
)
static
void
init_new_decoded_pad
(
GstElement
*
bin
,
GstPad
*
pad
,
struct
wg_parser
*
parser
)
{
{
struct
wg_parser
*
parser
=
This
->
wg_parser
;
struct
wg_parser_stream
*
stream
;
struct
wg_parser_stream
*
stream
;
const
char
*
typename
;
const
char
*
typename
;
char
*
name
;
char
*
name
;
...
@@ -1592,7 +1590,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct parser *Th
...
@@ -1592,7 +1590,7 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct parser *Th
GstStructure
*
arg
;
GstStructure
*
arg
;
int
ret
;
int
ret
;
TRACE
(
"
%p %p %p
\n
"
,
This
,
bin
,
pad
);
TRACE
(
"
parser %p, bin %p, pad %p.
\n
"
,
parser
,
bin
,
pad
);
name
=
gst_pad_get_name
(
pad
);
name
=
gst_pad_get_name
(
pad
);
TRACE
(
"Name: %s
\n
"
,
name
);
TRACE
(
"Name: %s
\n
"
,
name
);
...
@@ -1723,7 +1721,7 @@ out:
...
@@ -1723,7 +1721,7 @@ out:
static
void
existing_new_pad
(
GstElement
*
bin
,
GstPad
*
pad
,
gpointer
user
)
static
void
existing_new_pad
(
GstElement
*
bin
,
GstPad
*
pad
,
gpointer
user
)
{
{
struct
parser
*
This
=
user
;
struct
wg_
parser
*
This
=
user
;
TRACE
(
"%p %p %p
\n
"
,
This
,
bin
,
pad
);
TRACE
(
"%p %p %p
\n
"
,
This
,
bin
,
pad
);
...
@@ -1816,10 +1814,9 @@ static gboolean activate_mode(GstPad *pad, GstObject *parent, GstPadMode mode, g
...
@@ -1816,10 +1814,9 @@ static gboolean activate_mode(GstPad *pad, GstObject *parent, GstPadMode mode, g
static
void
no_more_pads
(
GstElement
*
decodebin
,
gpointer
user
)
static
void
no_more_pads
(
GstElement
*
decodebin
,
gpointer
user
)
{
{
struct
parser
*
filter
=
user
;
struct
wg_parser
*
parser
=
user
;
struct
wg_parser
*
parser
=
filter
->
wg_parser
;
GST_DEBUG
(
"
filter %p."
,
filt
er
);
GST_DEBUG
(
"
parser %p."
,
pars
er
);
pthread_mutex_lock
(
&
parser
->
mutex
);
pthread_mutex_lock
(
&
parser
->
mutex
);
parser
->
no_more_pads
=
true
;
parser
->
no_more_pads
=
true
;
...
@@ -2208,10 +2205,10 @@ static BOOL decodebin_parser_init_gst(struct parser *filter)
...
@@ -2208,10 +2205,10 @@ static BOOL decodebin_parser_init_gst(struct parser *filter)
gst_bin_add
(
GST_BIN
(
parser
->
container
),
element
);
gst_bin_add
(
GST_BIN
(
parser
->
container
),
element
);
g_signal_connect
(
element
,
"pad-added"
,
G_CALLBACK
(
existing_new_pad_wrapper
),
filt
er
);
g_signal_connect
(
element
,
"pad-added"
,
G_CALLBACK
(
existing_new_pad_wrapper
),
pars
er
);
g_signal_connect
(
element
,
"pad-removed"
,
G_CALLBACK
(
removed_decoded_pad
),
filt
er
);
g_signal_connect
(
element
,
"pad-removed"
,
G_CALLBACK
(
removed_decoded_pad
),
pars
er
);
g_signal_connect
(
element
,
"autoplug-select"
,
G_CALLBACK
(
autoplug_blacklist
),
filt
er
);
g_signal_connect
(
element
,
"autoplug-select"
,
G_CALLBACK
(
autoplug_blacklist
),
pars
er
);
g_signal_connect
(
element
,
"no-more-pads"
,
G_CALLBACK
(
no_more_pads
),
filt
er
);
g_signal_connect
(
element
,
"no-more-pads"
,
G_CALLBACK
(
no_more_pads
),
pars
er
);
parser
->
their_sink
=
gst_element_get_static_pad
(
element
,
"sink"
);
parser
->
their_sink
=
gst_element_get_static_pad
(
element
,
"sink"
);
...
@@ -3113,9 +3110,9 @@ static BOOL avi_splitter_init_gst(struct parser *filter)
...
@@ -3113,9 +3110,9 @@ static BOOL avi_splitter_init_gst(struct parser *filter)
gst_bin_add
(
GST_BIN
(
parser
->
container
),
element
);
gst_bin_add
(
GST_BIN
(
parser
->
container
),
element
);
g_signal_connect
(
element
,
"pad-added"
,
G_CALLBACK
(
existing_new_pad_wrapper
),
filt
er
);
g_signal_connect
(
element
,
"pad-added"
,
G_CALLBACK
(
existing_new_pad_wrapper
),
pars
er
);
g_signal_connect
(
element
,
"pad-removed"
,
G_CALLBACK
(
removed_decoded_pad
),
filt
er
);
g_signal_connect
(
element
,
"pad-removed"
,
G_CALLBACK
(
removed_decoded_pad
),
pars
er
);
g_signal_connect
(
element
,
"no-more-pads"
,
G_CALLBACK
(
no_more_pads
),
filt
er
);
g_signal_connect
(
element
,
"no-more-pads"
,
G_CALLBACK
(
no_more_pads
),
pars
er
);
parser
->
their_sink
=
gst_element_get_static_pad
(
element
,
"sink"
);
parser
->
their_sink
=
gst_element_get_static_pad
(
element
,
"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