Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
multicat
Commits
2ea7290c
Commit
2ea7290c
authored
Oct 28, 2013
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write aux files more often + cosmetics
parent
4bbf4303
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ingests.c
ingests.c
+1
-1
multicat.c
multicat.c
+1
-1
multicat_expire.sh
multicat_expire.sh
+2
-2
No files found.
ingests.c
View file @
2ea7290c
...
...
@@ -125,7 +125,7 @@ static void OutputFirst(void)
}
/*****************************************************************************
* Output
Fir
st: emulate CBR at the end
* Output
La
st: emulate CBR at the end
*****************************************************************************/
static
void
OutputLast
(
void
)
{
...
...
multicat.c
View file @
2ea7290c
...
...
@@ -59,7 +59,7 @@
#undef DEBUG_WRITEBACK
#define POLL_TIMEOUT 1000
/* 1 s */
#define MAX_LATENESS INT64_C(27000000)
/* 1 s */
#define FILE_FLUSH INT64_C(2700000
0
)
/* 1
s */
#define FILE_FLUSH INT64_C(2700000)
/* 1
00 m
s */
/*****************************************************************************
* Local declarations
...
...
multicat_expire.sh
View file @
2ea7290c
...
...
@@ -38,10 +38,10 @@ cd "$DIR"
NB_CHUNKS
=
`
ls
-a
-1
*
.ts |
wc
-l
`
if
test
$NB_CHUNKS
-gt
$WANTED_CHUNKS
;
then
ls
-t
*
.ts |
tail
-n
$((
$WANTED_CHUNKS
-
$NB_CHUNKS
))
|
cut
-d
.
-f
1 | xargs
-I
FILE sh
-c
"rm
FILE.ts
FILE.
aux
*"
ls
-t
*
.ts
2>/dev/null
|
tail
-n
$((
$WANTED_CHUNKS
-
$NB_CHUNKS
))
|
cut
-d
.
-f
1 | xargs
-I
FILE sh
-c
"rm
-rf
FILE.*"
fi
FILES
=
`
find
.
-name
\*
.ts
-size
+7
-print
`
if
test
-n
"
$FILES
"
;
then
ls
-t
$FILES
|
tail
-n
1 | xargs
basename
|
cut
-d
.
-f
1
ls
-t
$FILES
2>/dev/null
|
tail
-n
1 | xargs
basename
|
cut
-d
.
-f
1
fi
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