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
f2c7bb7c
Commit
f2c7bb7c
authored
May 20, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/v4l: try a bit harder to find a valid default video size.
parent
bef4a289
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
modules/access/v4l/v4l.c
modules/access/v4l/v4l.c
+13
-0
No files found.
modules/access/v4l/v4l.c
View file @
f2c7bb7c
...
...
@@ -1111,6 +1111,19 @@ static int OpenVideoDev( demux_t *p_demux, char *psz_device )
p_sys
->
i_width
=
vid_win
.
width
;
p_sys
->
i_height
=
vid_win
.
height
;
if
(
!
p_sys
->
i_width
||
!
p_sys
->
i_height
)
{
p_sys
->
i_width
=
p_sys
->
vid_cap
.
maxwidth
;
p_sys
->
i_height
=
p_sys
->
vid_cap
.
maxheight
;
}
if
(
!
p_sys
->
i_width
||
!
p_sys
->
i_height
)
{
msg_Err
(
p_demux
,
"invalid video size (%ix%i)"
,
p_sys
->
i_width
,
p_sys
->
i_height
);
goto
vdev_failed
;
}
msg_Dbg
(
p_demux
,
"will use %dx%d"
,
p_sys
->
i_width
,
p_sys
->
i_height
);
}
...
...
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