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
7008664b
Commit
7008664b
authored
Jun 12, 2007
by
Dennis van Amerongen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/rawdv.c: backport [19931], patch for rawdv and fix memleak.
parent
0c8cfc1a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
THANKS
THANKS
+1
-0
modules/demux/rawdv.c
modules/demux/rawdv.c
+25
-6
No files found.
THANKS
View file @
7008664b
...
...
@@ -125,6 +125,7 @@ Ondrej Kuda aka Albert <kuda at natur dot cuni dot cz> - HTTP interface tips and
Øyvind Kolbu <oyvindk at world-online.no> - FreeBSD patches
Patrick Horn <patrickd0thorn at mindspring d0t com> - DirectShow patch
Paul Corke <paul.corke at datatote dot co do uk> - pvr patch for newer ivtv drivers
Paul Corke <paul.corke at datatote dot co do uk> - dv patch to keep up with the hardware
Paul Mackerras <paulus at linuxcare.com.au> - AltiVec IDCT and motion
Pavlov Konstantin “thresh” - several Linux build system fixes
Petr Vacek - FTP cleartext authentication
...
...
modules/demux/rawdv.c
View file @
7008664b
...
...
@@ -5,6 +5,7 @@
* $Id$
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Paul Corke <paul dot corke at datatote dot co dot uk>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -32,6 +33,10 @@
/*****************************************************************************
* Module descriptor
*****************************************************************************/
#define HURRYUP_TEXT N_( "Hurry up" )
#define HURRYUP_LONGTEXT N_( "The demuxer will advance timestamps if the " \
"input can't keep up with the rate." )
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
...
@@ -41,6 +46,7 @@ vlc_module_begin();
set_capability
(
"demux2"
,
2
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_DEMUX
);
add_bool
(
"rawdv-hurry-up"
,
0
,
NULL
,
HURRYUP_TEXT
,
HURRYUP_LONGTEXT
,
VLC_FALSE
);
set_callbacks
(
Open
,
Close
);
add_shortcut
(
"rawdv"
);
vlc_module_end
();
...
...
@@ -104,6 +110,7 @@ struct demux_sys_t
/* program clock reference (in units of 90kHz) */
mtime_t
i_pcr
;
vlc_bool_t
b_hurry_up
;
};
/*****************************************************************************
...
...
@@ -196,11 +203,15 @@ static int Open( vlc_object_t * p_this )
p_peek
+=
72
;
/* skip rest of DIF block */
/* Set p_input field */
p_demux
->
pf_demux
=
Demux
;
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
demux_sys_t
)
);
if
(
!
p_sys
)
return
VLC_ENOMEM
;
p_sys
->
b_hurry_up
=
var_CreateGetBool
(
p_demux
,
"rawdv-hurry-up"
);
msg_Dbg
(
p_demux
,
"Realtime DV Source: %s"
,
(
p_sys
->
b_hurry_up
)
?
"Yes"
:
"No"
);
p_sys
->
i_dsf
=
dv_header
.
dsf
;
p_sys
->
frame_size
=
dv_header
.
dsf
?
12
*
150
*
80
:
10
*
150
*
80
;
...
...
@@ -264,6 +275,7 @@ static void Close( vlc_object_t *p_this )
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
var_Destroy
(
p_demux
,
"rawdv-hurry-up"
);
free
(
p_sys
);
}
...
...
@@ -278,10 +290,16 @@ static int Demux( demux_t *p_demux )
block_t
*
p_block
;
vlc_bool_t
b_audio
=
VLC_FALSE
;
if
(
p_sys
->
b_hurry_up
)
{
/* 3 frames */
p_sys
->
i_pcr
=
mdate
()
+
(
p_sys
->
i_dsf
?
120000
:
90000
);
}
/* Call the pace control */
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_pcr
);
if
(
(
p_block
=
stream_Block
(
p_demux
->
s
,
p_sys
->
frame_size
)
)
==
NULL
)
p_block
=
stream_Block
(
p_demux
->
s
,
p_sys
->
frame_size
);
if
(
p_block
==
NULL
)
{
/* EOF */
return
0
;
...
...
@@ -309,7 +327,10 @@ static int Demux( demux_t *p_demux )
es_out_Send
(
p_demux
->
out
,
p_sys
->
p_es_video
,
p_block
);
if
(
!
p_sys
->
b_hurry_up
)
{
p_sys
->
i_pcr
+=
(
I64C
(
1000000
)
/
p_sys
->
f_rate
);
}
return
1
;
}
...
...
@@ -472,5 +493,3 @@ static block_t *dv_extract_audio( demux_t *p_demux,
return
p_block
;
}
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