Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
f2c7bb7c
Commit
f2c7bb7c
authored
May 20, 2005
by
gbazin
Browse files
* 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
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
Supports
Markdown
0%
Try again
or
attach a new 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