Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d208c448
Commit
d208c448
authored
Sep 07, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
separate grabber creation
parent
ba782eed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
13 deletions
+23
-13
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+23
-13
No files found.
modules/stream_out/rtp.c
View file @
d208c448
...
...
@@ -161,7 +161,7 @@ static int MuxDel ( sout_stream_t *, sout_stream_id_t * );
static
int
MuxSend
(
sout_stream_t
*
,
sout_stream_id_t
*
,
block_t
*
);
static
int
AccessOutGrabberWrite
(
sout_access_out_t
*
,
block_t
*
);
static
sout_access_out_t
*
GrabberCreate
(
sout_stream_t
*
p_sout
);
static
void
SDPHandleUrl
(
sout_stream_t
*
,
char
*
);
...
...
@@ -371,7 +371,7 @@ static int Open( vlc_object_t *p_this )
psz
=
var_GetNonEmptyString
(
p_stream
,
SOUT_CFG_PREFIX
"mux"
);
if
(
psz
!=
NULL
)
{
sout_access_out_t
*
p_grab
;
/* TODO: factorize code with Add() */
sout_stream_id_t
*
id
;
p_stream
->
pf_add
=
MuxAdd
;
...
...
@@ -455,17 +455,7 @@ static int Open( vlc_object_t *p_this )
id
->
i_mtu
=
576
-
20
-
8
;
}
/* the access out grabber TODO export it as sout_AccessOutGrabberNew */
p_grab
=
p_sys
->
p_grab
=
vlc_object_create
(
p_sout
,
sizeof
(
sout_access_out_t
)
);
p_grab
->
p_module
=
NULL
;
p_grab
->
p_sout
=
p_sout
;
p_grab
->
psz_access
=
strdup
(
"grab"
);
p_grab
->
p_cfg
=
NULL
;
p_grab
->
psz_path
=
strdup
(
""
);
p_grab
->
p_sys
=
(
sout_access_out_sys_t
*
)
p_stream
;
p_grab
->
pf_seek
=
NULL
;
p_grab
->
pf_write
=
AccessOutGrabberWrite
;
p_sys
->
p_grab
=
GrabberCreate
(
p_stream
);
/* the muxer */
if
(
!
(
p_sys
->
p_mux
=
sout_MuxNew
(
p_sout
,
psz
,
p_sys
->
p_grab
)
)
)
...
...
@@ -2114,3 +2104,23 @@ static int AccessOutGrabberWrite( sout_access_out_t *p_access,
return
VLC_SUCCESS
;
}
static
sout_access_out_t
*
GrabberCreate
(
sout_stream_t
*
p_stream
)
{
sout_access_out_t
*
p_grab
;
p_grab
=
vlc_object_create
(
p_stream
->
p_sout
,
sizeof
(
*
p_grab
)
);
if
(
p_grab
==
NULL
)
return
NULL
;
p_grab
->
p_module
=
NULL
;
p_grab
->
p_sout
=
p_stream
->
p_sout
;
p_grab
->
psz_access
=
strdup
(
"grab"
);
p_grab
->
p_cfg
=
NULL
;
p_grab
->
psz_path
=
strdup
(
""
);
p_grab
->
p_sys
=
(
sout_access_out_sys_t
*
)
p_stream
;
p_grab
->
pf_seek
=
NULL
;
p_grab
->
pf_write
=
AccessOutGrabberWrite
;
return
p_grab
;
}
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