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
2d692952
Commit
2d692952
authored
Mar 03, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use MiB rather than MB for arbitrary memory limits
parent
e2eccee7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
modules/stream_out/record.c
modules/stream_out/record.c
+4
-4
src/input/decoder.c
src/input/decoder.c
+2
-2
src/input/es_out.c
src/input/es_out.c
+3
-3
No files found.
modules/stream_out/record.c
View file @
2d692952
...
...
@@ -148,11 +148,11 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_date_start
=
-
1
;
p_sys
->
i_size
=
0
;
#ifdef OPTIMIZE_MEMORY
p_sys
->
i_max_wait
=
5
*
1000000
;
/* 5s */
p_sys
->
i_max_size
=
1
*
10
00000
;
/* 1 Mbyte
*/
p_sys
->
i_max_wait
=
5
*
CLOCK_FREQ
;
/* 5s */
p_sys
->
i_max_size
=
1
*
10
24
*
1024
;
/* 1 MiB
*/
#else
p_sys
->
i_max_wait
=
30
*
1000000
;
/* 30s */
p_sys
->
i_max_size
=
20
*
10
00000
;
/* 20 Mbyte
*/
p_sys
->
i_max_wait
=
30
*
CLOCK_FREQ
;
/* 30s */
p_sys
->
i_max_size
=
20
*
10
24
*
1024
;
/* 20 MiB
*/
#endif
p_sys
->
b_drop
=
false
;
p_sys
->
i_dts_start
=
0
;
...
...
src/input/decoder.c
View file @
2d692952
...
...
@@ -369,9 +369,9 @@ void input_DecoderDecode( decoder_t *p_dec, block_t *p_block, bool b_do_pace )
block_FifoPace
(
p_owner
->
p_fifo
,
10
,
SIZE_MAX
);
}
#ifdef __arm__
else
if
(
block_FifoSize
(
p_owner
->
p_fifo
)
>
50
000000
/* 50 M
B */
)
else
if
(
block_FifoSize
(
p_owner
->
p_fifo
)
>
50
*
1024
*
1024
/* 50 Mi
B */
)
#else
else
if
(
block_FifoSize
(
p_owner
->
p_fifo
)
>
400
000000
/* 400 M
B, ie ~ 50mb/s for 60s */
)
else
if
(
block_FifoSize
(
p_owner
->
p_fifo
)
>
400
*
1024
*
1024
/* 400 Mi
B, ie ~ 50mb/s for 60s */
)
#endif
{
/* FIXME: ideally we would check the time amount of data
...
...
src/input/es_out.c
View file @
2d692952
...
...
@@ -734,13 +734,13 @@ static bool EsOutIsExtraBufferingAllowed( es_out_t *out )
if
(
p_es
->
p_dec_record
)
i_size
+=
input_DecoderGetFifoSize
(
p_es
->
p_dec_record
);
}
//
fprintf( stderr, "----- EsOutIsExtraBufferingAllowed =% 5d kbytes
-- ", i_size / 1024 );
//
msg_Info( out, "----- EsOutIsExtraBufferingAllowed =% 5d KiB
-- ", i_size / 1024 );
/* TODO maybe we want to be able to tune it ? */
#if defined(OPTIMIZE_MEMORY)
const
size_t
i_level_high
=
5
00000
;
/* 0.5 Mbytes
*/
const
size_t
i_level_high
=
5
12
*
1024
;
/* 0.5 MiB
*/
#else
const
size_t
i_level_high
=
10
000000
;
/* 10 Mbytes
*/
const
size_t
i_level_high
=
10
*
1024
*
1024
;
/* 10 MiB
*/
#endif
return
i_size
<
i_level_high
;
}
...
...
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