Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
25d4e55f
Commit
25d4e55f
authored
Nov 26, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/dshow/dshow.cpp: small change to default chroma selection.
parent
97f52890
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+6
-3
No files found.
modules/access/dshow/dshow.cpp
View file @
25d4e55f
...
...
@@ -2,7 +2,7 @@
* dshow.cpp : DirectShow access module for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: dshow.cpp,v 1.1
6 2003/11/24 20:45:23
gbazin Exp $
* $Id: dshow.cpp,v 1.1
7 2003/11/26 21:54:00
gbazin Exp $
*
* Author: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -218,7 +218,7 @@ static int AccessOpen( vlc_object_t *p_this )
/* Get/parse options and open device(s) */
string
vdevname
,
adevname
;
int
i_width
=
0
,
i_height
=
0
,
i_chroma
=
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
)
;
int
i_width
=
0
,
i_height
=
0
,
i_chroma
=
0
;
var_Create
(
p_input
,
"dshow-vdev"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_input
,
"dshow-vdev"
,
&
val
);
...
...
@@ -777,6 +777,7 @@ static AM_MEDIA_TYPE EnumDeviceCaps( vlc_object_t *p_this,
IEnumPins
*
p_enumpins
;
IPin
*
p_output_pin
;
IEnumMediaTypes
*
p_enummt
;
int
i_orig_chroma
=
i_chroma
;
AM_MEDIA_TYPE
media_type
;
media_type
.
majortype
=
GUID_NULL
;
...
...
@@ -832,7 +833,9 @@ static AM_MEDIA_TYPE EnumDeviceCaps( vlc_object_t *p_this,
(
char
*
)
&
i_fourcc
,
i_current_width
,
i_current_height
);
if
(
(
!
i_chroma
||
i_fourcc
==
i_chroma
)
&&
if
(
(
!
i_chroma
||
i_fourcc
==
i_chroma
||
(
!
i_orig_chroma
&&
i_fourcc
==
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
))
)
&&
(
!
i_width
||
i_width
==
i_current_width
)
&&
(
!
i_height
||
i_height
==
i_current_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