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
a1bef303
Commit
a1bef303
authored
Jan 04, 2009
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix confusing variable name.
parent
9f7c2895
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
modules/access/alsa.c
modules/access/alsa.c
+3
-3
modules/access/oss.c
modules/access/oss.c
+3
-3
modules/access/v4l2/v4l2.c
modules/access/v4l2/v4l2.c
+6
-6
No files found.
modules/access/alsa.c
View file @
a1bef303
...
@@ -119,7 +119,7 @@ struct demux_sys_t
...
@@ -119,7 +119,7 @@ struct demux_sys_t
const
char
*
psz_device
;
/* Alsa device from MRL */
const
char
*
psz_device
;
/* Alsa device from MRL */
/* Audio */
/* Audio */
int
i_
pts
;
int
i_
cache
;
unsigned
int
i_sample_rate
;
unsigned
int
i_sample_rate
;
bool
b_stereo
;
bool
b_stereo
;
size_t
i_max_frame_size
;
size_t
i_max_frame_size
;
...
@@ -178,7 +178,7 @@ static int DemuxOpen( vlc_object_t *p_this )
...
@@ -178,7 +178,7 @@ static int DemuxOpen( vlc_object_t *p_this )
p_sys
->
i_sample_rate
=
var_CreateGetInteger
(
p_demux
,
CFG_PREFIX
"samplerate"
);
p_sys
->
i_sample_rate
=
var_CreateGetInteger
(
p_demux
,
CFG_PREFIX
"samplerate"
);
p_sys
->
b_stereo
=
var_CreateGetBool
(
p_demux
,
CFG_PREFIX
"stereo"
);
p_sys
->
b_stereo
=
var_CreateGetBool
(
p_demux
,
CFG_PREFIX
"stereo"
);
p_sys
->
i_
pts
=
var_CreateGetInteger
(
p_demux
,
CFG_PREFIX
"caching"
);
p_sys
->
i_
cache
=
var_CreateGetInteger
(
p_demux
,
CFG_PREFIX
"caching"
);
p_sys
->
p_es
=
NULL
;
p_sys
->
p_es
=
NULL
;
p_sys
->
p_block
=
NULL
;
p_sys
->
p_block
=
NULL
;
p_sys
->
i_next_demux_date
=
-
1
;
p_sys
->
i_next_demux_date
=
-
1
;
...
@@ -237,7 +237,7 @@ static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
...
@@ -237,7 +237,7 @@ static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_GET_PTS_DELAY
:
case
DEMUX_GET_PTS_DELAY
:
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi64
=
(
int64_t
)
p_sys
->
i_
pts
*
1000
;
*
pi64
=
(
int64_t
)
p_sys
->
i_
cache
*
1000
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
case
DEMUX_GET_TIME
:
case
DEMUX_GET_TIME
:
...
...
modules/access/oss.c
View file @
a1bef303
...
@@ -118,7 +118,7 @@ struct demux_sys_t
...
@@ -118,7 +118,7 @@ struct demux_sys_t
int
i_fd
;
int
i_fd
;
/* Audio */
/* Audio */
int
i_
pts
;
int
i_
cache
;
unsigned
int
i_sample_rate
;
unsigned
int
i_sample_rate
;
bool
b_stereo
;
bool
b_stereo
;
size_t
i_max_frame_size
;
size_t
i_max_frame_size
;
...
@@ -169,7 +169,7 @@ static int DemuxOpen( vlc_object_t *p_this )
...
@@ -169,7 +169,7 @@ static int DemuxOpen( vlc_object_t *p_this )
p_sys
->
i_sample_rate
=
var_CreateGetInteger
(
p_demux
,
CFG_PREFIX
"samplerate"
);
p_sys
->
i_sample_rate
=
var_CreateGetInteger
(
p_demux
,
CFG_PREFIX
"samplerate"
);
p_sys
->
b_stereo
=
var_CreateGetBool
(
p_demux
,
CFG_PREFIX
"stereo"
);
p_sys
->
b_stereo
=
var_CreateGetBool
(
p_demux
,
CFG_PREFIX
"stereo"
);
p_sys
->
i_
pts
=
var_CreateGetInteger
(
p_demux
,
CFG_PREFIX
"caching"
);
p_sys
->
i_
cache
=
var_CreateGetInteger
(
p_demux
,
CFG_PREFIX
"caching"
);
p_sys
->
i_fd
=
-
1
;
p_sys
->
i_fd
=
-
1
;
p_sys
->
p_es
=
NULL
;
p_sys
->
p_es
=
NULL
;
p_sys
->
p_block
=
NULL
;
p_sys
->
p_block
=
NULL
;
...
@@ -225,7 +225,7 @@ static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
...
@@ -225,7 +225,7 @@ static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_GET_PTS_DELAY
:
case
DEMUX_GET_PTS_DELAY
:
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi64
=
(
int64_t
)
p_sys
->
i_
pts
*
1000
;
*
pi64
=
(
int64_t
)
p_sys
->
i_
cache
*
1000
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
case
DEMUX_GET_TIME
:
case
DEMUX_GET_TIME
:
...
...
modules/access/v4l2/v4l2.c
View file @
a1bef303
...
@@ -503,7 +503,7 @@ struct demux_sys_t
...
@@ -503,7 +503,7 @@ struct demux_sys_t
/* Video */
/* Video */
io_method
io
;
io_method
io
;
int
i_
pts
;
int
i_
cache
;
struct
v4l2_capability
dev_cap
;
struct
v4l2_capability
dev_cap
;
...
@@ -624,7 +624,7 @@ static void GetV4L2Params( demux_sys_t *p_sys, vlc_object_t *p_obj )
...
@@ -624,7 +624,7 @@ static void GetV4L2Params( demux_sys_t *p_sys, vlc_object_t *p_obj )
p_sys
->
f_fps
=
var_CreateGetFloat
(
p_obj
,
"v4l2-fps"
);
p_sys
->
f_fps
=
var_CreateGetFloat
(
p_obj
,
"v4l2-fps"
);
p_sys
->
psz_requested_chroma
=
var_CreateGetString
(
p_obj
,
"v4l2-chroma"
);
p_sys
->
psz_requested_chroma
=
var_CreateGetString
(
p_obj
,
"v4l2-chroma"
);
p_sys
->
i_
pts
=
var_CreateGetInteger
(
p_obj
,
"v4l2-caching"
);
p_sys
->
i_
cache
=
var_CreateGetInteger
(
p_obj
,
"v4l2-caching"
);
p_sys
->
i_cur_tuner
=
var_CreateGetInteger
(
p_obj
,
"v4l2-tuner"
);
p_sys
->
i_cur_tuner
=
var_CreateGetInteger
(
p_obj
,
"v4l2-tuner"
);
p_sys
->
i_frequency
=
var_CreateGetInteger
(
p_obj
,
"v4l2-tuner-frequency"
);
p_sys
->
i_frequency
=
var_CreateGetInteger
(
p_obj
,
"v4l2-tuner-frequency"
);
...
@@ -802,8 +802,8 @@ static void ParseMRL( demux_sys_t *p_sys, char *psz_path, vlc_object_t *p_obj )
...
@@ -802,8 +802,8 @@ static void ParseMRL( demux_sys_t *p_sys, char *psz_path, vlc_object_t *p_obj )
#endif
#endif
else
if
(
!
strncmp
(
psz_parser
,
"caching="
,
strlen
(
"caching="
)
)
)
else
if
(
!
strncmp
(
psz_parser
,
"caching="
,
strlen
(
"caching="
)
)
)
{
{
p_sys
->
i_
pts
=
strtol
(
psz_parser
+
strlen
(
"caching="
),
p_sys
->
i_
cache
=
strtol
(
psz_parser
+
strlen
(
"caching="
),
&
psz_parser
,
0
);
&
psz_parser
,
0
);
}
}
else
if
(
!
strncmp
(
psz_parser
,
"tuner="
,
strlen
(
"tuner="
)
)
)
else
if
(
!
strncmp
(
psz_parser
,
"tuner="
,
strlen
(
"tuner="
)
)
)
{
{
...
@@ -1050,7 +1050,7 @@ static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
...
@@ -1050,7 +1050,7 @@ static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_GET_PTS_DELAY
:
case
DEMUX_GET_PTS_DELAY
:
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi64
=
(
int64_t
)
p_sys
->
i_
pts
*
1000
;
*
pi64
=
(
int64_t
)
p_sys
->
i_
cache
*
1000
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
case
DEMUX_GET_TIME
:
case
DEMUX_GET_TIME
:
...
@@ -1101,7 +1101,7 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
...
@@ -1101,7 +1101,7 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
case
ACCESS_GET_PTS_DELAY
:
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
(
int64_t
)
p_sys
->
i_
pts
*
1000
;
*
pi_64
=
(
int64_t
)
p_sys
->
i_
cache
*
1000
;
break
;
break
;
/* */
/* */
...
...
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