Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2a3eb944
Commit
2a3eb944
authored
Dec 05, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smem: no need to create the variables as config_ChainParse is already creating them.
parent
ba7787e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
modules/stream_out/smem.c
modules/stream_out/smem.c
+5
-9
No files found.
modules/stream_out/smem.c
View file @
2a3eb944
...
...
@@ -164,28 +164,24 @@ static int Open( vlc_object_t *p_this )
config_ChainParse
(
p_stream
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_stream
->
p_cfg
);
p_sys
->
time_sync
=
var_
Create
GetBool
(
p_stream
,
SOUT_CFG_PREFIX
"time-sync"
);
p_sys
->
time_sync
=
var_GetBool
(
p_stream
,
SOUT_CFG_PREFIX
"time-sync"
);
psz_tmp
=
var_
Create
GetString
(
p_stream
,
SOUT_PREFIX_VIDEO
"prerender-callback"
);
psz_tmp
=
var_GetString
(
p_stream
,
SOUT_PREFIX_VIDEO
"prerender-callback"
);
p_sys
->
pf_video_prerender_callback
=
(
void
(
*
)
(
void
*
,
uint8_t
**
,
int
))(
intptr_t
)
atoll
(
psz_tmp
);
free
(
psz_tmp
);
psz_tmp
=
var_
Create
GetString
(
p_stream
,
SOUT_PREFIX_AUDIO
"prerender-callback"
);
psz_tmp
=
var_GetString
(
p_stream
,
SOUT_PREFIX_AUDIO
"prerender-callback"
);
p_sys
->
pf_audio_prerender_callback
=
(
void
(
*
)
(
void
*
,
uint8_t
**
,
unsigned
int
))(
intptr_t
)
atoll
(
psz_tmp
);
free
(
psz_tmp
);
psz_tmp
=
var_
Create
GetString
(
p_stream
,
SOUT_PREFIX_VIDEO
"postrender-callback"
);
psz_tmp
=
var_GetString
(
p_stream
,
SOUT_PREFIX_VIDEO
"postrender-callback"
);
p_sys
->
pf_video_postrender_callback
=
(
void
(
*
)
(
void
*
,
uint8_t
*
,
int
,
int
,
int
,
int
,
mtime_t
))(
intptr_t
)
atoll
(
psz_tmp
);
free
(
psz_tmp
);
psz_tmp
=
var_
Create
GetString
(
p_stream
,
SOUT_PREFIX_AUDIO
"postrender-callback"
);
psz_tmp
=
var_GetString
(
p_stream
,
SOUT_PREFIX_AUDIO
"postrender-callback"
);
p_sys
->
pf_audio_postrender_callback
=
(
void
(
*
)
(
void
*
,
uint8_t
*
,
unsigned
int
,
unsigned
int
,
unsigned
int
,
unsigned
int
,
unsigned
int
,
mtime_t
))(
intptr_t
)
atoll
(
psz_tmp
);
free
(
psz_tmp
);
/* Create the remaining variables for a later use */
var_Create
(
p_stream
,
SOUT_PREFIX_VIDEO
"data"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_stream
,
SOUT_PREFIX_AUDIO
"data"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
/* Setting stream out module callbacks */
p_stream
->
pf_add
=
Add
;
p_stream
->
pf_del
=
Del
;
...
...
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