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
4782f67b
Commit
4782f67b
authored
Jan 21, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Don't force watch_bus() onto a Wine thread.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
871c5673
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
22 deletions
+1
-22
gst_cbs.c
dlls/winegstreamer/gst_cbs.c
+0
-13
gst_cbs.h
dlls/winegstreamer/gst_cbs.h
+0
-2
gstdemux.c
dlls/winegstreamer/gstdemux.c
+1
-7
No files found.
dlls/winegstreamer/gst_cbs.c
View file @
4782f67b
...
...
@@ -136,19 +136,6 @@ static void call_cb(struct cb_data *cbdata)
pthread_mutex_destroy
(
&
cbdata
->
lock
);
}
GstBusSyncReply
watch_bus_wrapper
(
GstBus
*
bus
,
GstMessage
*
msg
,
gpointer
user
)
{
struct
cb_data
cbdata
=
{
WATCH_BUS
};
cbdata
.
u
.
watch_bus_data
.
bus
=
bus
;
cbdata
.
u
.
watch_bus_data
.
msg
=
msg
;
cbdata
.
u
.
watch_bus_data
.
user
=
user
;
call_cb
(
&
cbdata
);
return
cbdata
.
u
.
watch_bus_data
.
ret
;
}
void
existing_new_pad_wrapper
(
GstElement
*
bin
,
GstPad
*
pad
,
gpointer
user
)
{
struct
cb_data
cbdata
=
{
EXISTING_NEW_PAD
};
...
...
dlls/winegstreamer/gst_cbs.h
View file @
4782f67b
...
...
@@ -30,7 +30,6 @@ typedef enum {
}
GstAutoplugSelectResult
;
enum
CB_TYPE
{
WATCH_BUS
,
EXISTING_NEW_PAD
,
QUERY_FUNCTION
,
ACTIVATE_MODE
,
...
...
@@ -133,7 +132,6 @@ void mark_wine_thread(void) DECLSPEC_HIDDEN;
void
perform_cb_gstdemux
(
struct
cb_data
*
data
)
DECLSPEC_HIDDEN
;
void
perform_cb_media_source
(
struct
cb_data
*
data
)
DECLSPEC_HIDDEN
;
GstBusSyncReply
watch_bus_wrapper
(
GstBus
*
bus
,
GstMessage
*
msg
,
gpointer
user
)
DECLSPEC_HIDDEN
;
void
existing_new_pad_wrapper
(
GstElement
*
bin
,
GstPad
*
pad
,
gpointer
user
)
DECLSPEC_HIDDEN
;
gboolean
query_function_wrapper
(
GstPad
*
pad
,
GstObject
*
parent
,
GstQuery
*
query
)
DECLSPEC_HIDDEN
;
gboolean
activate_mode_wrapper
(
GstPad
*
pad
,
GstObject
*
parent
,
GstPadMode
mode
,
gboolean
activate
)
DECLSPEC_HIDDEN
;
...
...
dlls/winegstreamer/gstdemux.c
View file @
4782f67b
...
...
@@ -1503,7 +1503,7 @@ static HRESULT GST_Connect(struct parser *This, IPin *pConnectPin)
if
(
!
This
->
bus
)
{
This
->
bus
=
gst_bus_new
();
gst_bus_set_sync_handler
(
This
->
bus
,
watch_bus
_wrapper
,
This
,
NULL
);
gst_bus_set_sync_handler
(
This
->
bus
,
watch_bus
,
This
,
NULL
);
}
This
->
container
=
gst_bin_new
(
NULL
);
...
...
@@ -2424,12 +2424,6 @@ void perform_cb_gstdemux(struct cb_data *cbdata)
{
switch
(
cbdata
->
type
)
{
case
WATCH_BUS
:
{
struct
watch_bus_data
*
data
=
&
cbdata
->
u
.
watch_bus_data
;
cbdata
->
u
.
watch_bus_data
.
ret
=
watch_bus
(
data
->
bus
,
data
->
msg
,
data
->
user
);
break
;
}
case
EXISTING_NEW_PAD
:
{
struct
pad_added_data
*
data
=
&
cbdata
->
u
.
pad_added_data
;
...
...
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