Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
06627476
Commit
06627476
authored
Oct 09, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio output: fix coding style
parent
0df8d78a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
23 deletions
+19
-23
modules/access/avio.c
modules/access/avio.c
+19
-23
No files found.
modules/access/avio.c
View file @
06627476
...
...
@@ -49,9 +49,9 @@ vlc_module_end()
static
ssize_t
Read
(
access_t
*
,
uint8_t
*
,
size_t
);
static
int
Seek
(
access_t
*
,
uint64_t
);
static
int
Control
(
access_t
*
,
int
,
va_list
);
static
ssize_t
Write
(
sout_access_out_t
*
,
block_t
*
);
static
ssize_t
Write
(
sout_access_out_t
*
,
block_t
*
);
static
int
OutControl
(
sout_access_out_t
*
,
int
,
va_list
);
static
int
OutSeek
(
sout_access_out_t
*
,
off_t
);
static
int
OutSeek
(
sout_access_out_t
*
,
off_t
);
static
int
SetupAvio
(
vlc_object_t
*
);
...
...
@@ -101,7 +101,7 @@ int OpenAvio(vlc_object_t *object)
goto
error
;
msg_Dbg
(
access
,
"Opening '%s'"
,
url
);
if
(
url_open
(
&
sys
->
context
,
url
,
URL_RDONLY
)
<
0
)
if
(
url_open
(
&
sys
->
context
,
url
,
URL_RDONLY
)
<
0
)
sys
->
context
=
NULL
;
free
(
url
);
...
...
@@ -161,7 +161,7 @@ int OutOpenAvio(vlc_object_t *object)
goto
error
;
msg_Dbg
(
access
,
"avio_output Opening '%s'"
,
url
);
if
(
url_open
(
&
sys
->
context
,
url
,
URL_WRONLY
)
<
0
)
if
(
url_open
(
&
sys
->
context
,
url
,
URL_WRONLY
)
<
0
)
sys
->
context
=
NULL
;
free
(
url
);
...
...
@@ -223,17 +223,16 @@ static ssize_t Read(access_t *access, uint8_t *data, size_t size)
/*****************************************************************************
* Write:
*****************************************************************************/
static
ssize_t
Write
(
sout_access_out_t
*
p_access
,
block_t
*
p_buffer
)
static
ssize_t
Write
(
sout_access_out_t
*
p_access
,
block_t
*
p_buffer
)
{
access_sys_t
*
p_sys
=
(
access_sys_t
*
)
p_access
->
p_sys
;
size_t
i_write
=
0
;
while
(
p_buffer
!=
NULL
)
{
while
(
p_buffer
!=
NULL
)
{
block_t
*
p_next
=
p_buffer
->
p_next
;;
i_write
+=
url_write
(
p_sys
->
context
,
p_buffer
->
p_buffer
,
p_buffer
->
i_buffer
);
block_Release
(
p_buffer
);
block_Release
(
p_buffer
);
p_buffer
=
p_next
;
}
...
...
@@ -256,7 +255,7 @@ static int Seek(access_t *access, uint64_t position)
return
VLC_SUCCESS
;
}
static
int
OutSeek
(
sout_access_out_t
*
p_access
,
off_t
i_pos
)
static
int
OutSeek
(
sout_access_out_t
*
p_access
,
off_t
i_pos
)
{
sout_access_out_sys_t
*
sys
=
p_access
->
p_sys
;
...
...
@@ -265,23 +264,21 @@ static int OutSeek( sout_access_out_t *p_access, off_t i_pos )
return
VLC_SUCCESS
;
}
static
int
OutControl
(
sout_access_out_t
*
p_access
,
int
i_query
,
va_list
args
)
static
int
OutControl
(
sout_access_out_t
*
p_access
,
int
i_query
,
va_list
args
)
{
sout_access_out_sys_t
*
p_sys
=
p_access
->
p_sys
;
VLC_UNUSED
(
p_sys
);
switch
(
i_query
)
{
case
ACCESS_OUT_CONTROLS_PACE
:
{
bool
*
pb
=
va_arg
(
args
,
bool
*
);
//*pb = strcmp( p_access->psz_access, "stream" );
*
pb
=
false
;
break
;
}
default:
return
VLC_EGENERIC
;
switch
(
i_query
)
{
case
ACCESS_OUT_CONTROLS_PACE
:
{
bool
*
pb
=
va_arg
(
args
,
bool
*
);
//*pb = strcmp(p_access->psz_access, "stream");
*
pb
=
false
;
break
;
}
default:
return
VLC_EGENERIC
;
}
return
VLC_SUCCESS
;
}
...
...
@@ -357,4 +354,3 @@ static int SetupAvio(vlc_object_t *access)
return
VLC_SUCCESS
;
}
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