Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
7c790ca2
Commit
7c790ca2
authored
Oct 15, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sout_bridge: use var_(Get|Set)Address.
parent
e44ad809
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
24 deletions
+3
-24
modules/stream_out/bridge.c
modules/stream_out/bridge.c
+3
-24
No files found.
modules/stream_out/bridge.c
View file @
7c790ca2
...
...
@@ -167,24 +167,6 @@ typedef struct bridge_t
int
i_es_num
;
}
bridge_t
;
#define GetBridge(a,b) __GetBridge( VLC_OBJECT(a), b )
static
bridge_t
*
__GetBridge
(
vlc_object_t
*
p_object
,
const
char
*
psz_name
)
{
bridge_t
*
p_bridge
;
vlc_value_t
val
;
if
(
var_Get
(
p_object
->
p_libvlc
,
psz_name
,
&
val
)
)
{
p_bridge
=
NULL
;
}
else
{
p_bridge
=
val
.
p_address
;
}
return
p_bridge
;
}
/*
* Bridge out
...
...
@@ -272,17 +254,14 @@ static sout_stream_id_t * AddOut( sout_stream_t *p_stream, es_format_t *p_fmt )
vlc_mutex_lock
(
p_sys
->
p_lock
);
p_bridge
=
GetBridge
(
p_stream
,
p_sys
->
psz_name
);
p_bridge
=
var_GetAddress
(
p_stream
,
p_sys
->
psz_name
);
if
(
p_bridge
==
NULL
)
{
vlc_object_t
*
p_libvlc
=
VLC_OBJECT
(
p_stream
->
p_libvlc
);
vlc_value_t
val
;
p_bridge
=
malloc
(
sizeof
(
bridge_t
)
);
var_Create
(
p_libvlc
,
p_sys
->
psz_name
,
VLC_VAR_ADDRESS
);
val
.
p_address
=
p_bridge
;
var_Set
(
p_libvlc
,
p_sys
->
psz_name
,
val
);
var_SetAddress
(
p_libvlc
,
p_sys
->
psz_name
,
p_bridge
);
p_bridge
->
i_es_num
=
0
;
p_bridge
->
pp_es
=
NULL
;
...
...
@@ -557,7 +536,7 @@ static int SendIn( sout_stream_t *p_stream, sout_stream_id_t *id,
/* Then check all bridged streams */
vlc_mutex_lock
(
p_sys
->
p_lock
);
p_bridge
=
GetBridge
(
p_stream
,
p_sys
->
psz_name
);
p_bridge
=
var_GetAddress
(
p_stream
,
p_sys
->
psz_name
);
if
(
p_bridge
)
{
...
...
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