Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b00f1988
Commit
b00f1988
authored
Jun 23, 2003
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy / paste of code so that the pvr input parse all parameters. Doesn't
work for the standard (PAL/SECAM/NTSC) yet.
parent
79e27cb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
4 deletions
+39
-4
modules/access/pvr/pvr.c
modules/access/pvr/pvr.c
+39
-4
No files found.
modules/access/pvr/pvr.c
View file @
b00f1988
...
...
@@ -2,7 +2,7 @@
* pvr.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: pvr.c,v 1.
2 2003/06/07 03:45:38 titer
Exp $
* $Id: pvr.c,v 1.
3 2003/06/23 17:01:36 bigben
Exp $
*
* Authors: Eric Petit <titer@videolan.org>
*
...
...
@@ -137,9 +137,9 @@ static int Open( vlc_object_t * p_this )
{
for
(
;;
)
{
if
(
!
strncmp
(
psz_parser
,
"device="
,
strlen
(
"device"
)
)
)
if
(
!
strncmp
(
psz_parser
,
"device="
,
strlen
(
"device
=
"
)
)
)
{
p_sys
->
i_device
=
strtol
(
psz_parser
+
strlen
(
"device"
),
p_sys
->
i_device
=
strtol
(
psz_parser
+
strlen
(
"device
=
"
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"frequency="
,
...
...
@@ -149,6 +149,41 @@ static int Open( vlc_object_t * p_this )
strtol
(
psz_parser
+
strlen
(
"frequency="
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"framerate="
,
strlen
(
"framerate="
)
)
)
{
p_sys
->
i_framerate
=
strtol
(
psz_parser
+
strlen
(
"framerate="
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"width="
,
strlen
(
"width="
)
)
)
{
p_sys
->
i_width
=
strtol
(
psz_parser
+
strlen
(
"width="
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"height="
,
strlen
(
"height="
)
)
)
{
p_sys
->
i_height
=
strtol
(
psz_parser
+
strlen
(
"height="
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"bitrate="
,
strlen
(
"bitrate="
)
)
)
{
p_sys
->
i_bitrate
=
strtol
(
psz_parser
+
strlen
(
"bitrate="
),
&
psz_parser
,
0
);
}
else
if
(
!
strncmp
(
psz_parser
,
"maxbitrate="
,
strlen
(
"maxbitrate="
)
)
)
{
p_sys
->
i_bitrate_peak
=
strtol
(
psz_parser
+
strlen
(
"maxbitrate="
),
&
psz_parser
,
0
);
}
if
(
*
psz_parser
)
psz_parser
++
;
else
...
...
@@ -159,7 +194,7 @@ static int Open( vlc_object_t * p_this )
free
(
psz_tofree
);
msg_Dbg
(
p_input
,
"device: /dev/video%d, standard: %x, size: %dx%d, "
"fr
amerate: %d, frequency
: %d, bitrate: %d/%d"
,
"fr
equency: %d, framerate
: %d, bitrate: %d/%d"
,
p_sys
->
i_device
,
p_sys
->
i_standard
,
p_sys
->
i_width
,
p_sys
->
i_height
,
p_sys
->
i_frequency
,
p_sys
->
i_framerate
,
p_sys
->
i_bitrate
,
p_sys
->
i_bitrate_peak
);
...
...
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