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
d475b82a
Commit
d475b82a
authored
Aug 09, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DShow: small fixes on error paths
parent
ab3a276e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
modules/access/dshow/common.h
modules/access/dshow/common.h
+1
-1
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+7
-5
No files found.
modules/access/dshow/common.h
View file @
d475b82a
...
...
@@ -105,7 +105,7 @@ struct access_sys_t
/*****************************************************************************
* DirectShow GUIDs.
*****************************************************************************/
const
GUID
PROPSETID_TUNER
=
{
0x6a2e0605
,
0x28e4
,
0x11d0
,
{
0xa1
,
0x8c
,
0x00
,
0xa0
,
0xc9
,
0x11
,
0x89
,
0x56
}};
static
const
GUID
PROPSETID_TUNER
=
{
0x6a2e0605
,
0x28e4
,
0x11d0
,
{
0xa1
,
0x8c
,
0x00
,
0xa0
,
0xc9
,
0x11
,
0x89
,
0x56
}};
/****************************************************************************
* The following should be in ks.h and ksmedia.h, but since they are not in
...
...
modules/access/dshow/dshow.cpp
View file @
d475b82a
...
...
@@ -2326,6 +2326,7 @@ static void ConfigTuner( vlc_object_t *p_this, ICaptureGraphBuilder2 *p_graph,
if
(
FAILED
(
hr
))
{
msg_Dbg
(
p_this
,
"Couldn't QI for IKsPropertySet"
);
p_TV
->
Release
();
return
;
}
...
...
@@ -2349,7 +2350,7 @@ static void ConfigTuner( vlc_object_t *p_this, ICaptureGraphBuilder2 *p_graph,
else
{
msg_Dbg
(
p_this
,
"KSPROPERTY_TUNER_MODE_CAPS not supported!"
);
return
;
goto
free_on_error
;
}
msg_Dbg
(
p_this
,
"Frequency range supproted from %d to %d."
,
ModeCaps
.
MinFrequency
,
ModeCaps
.
MaxFrequency
);
...
...
@@ -2378,13 +2379,13 @@ static void ConfigTuner( vlc_object_t *p_this, ICaptureGraphBuilder2 *p_graph,
if
(
FAILED
(
hr
))
{
msg_Dbg
(
p_this
,
"Couldn't set KSPROPERTY_TUNER_FREQUENCY!"
);
return
;
goto
free_on_error
;
}
}
else
{
msg_Dbg
(
p_this
,
"Requested frequency exceeds the supported range!"
);
return
;
goto
free_on_error
;
}
}
...
...
@@ -2401,15 +2402,16 @@ static void ConfigTuner( vlc_object_t *p_this, ICaptureGraphBuilder2 *p_graph,
if
(
FAILED
(
hr
))
{
msg_Dbg
(
p_this
,
"Couldn't set KSPROPERTY_TUNER_STANDARD!"
);
return
;
goto
free_on_error
;
}
}
else
{
msg_Dbg
(
p_this
,
"Requested video standard is not supported by the tuner!"
);
return
;
goto
free_on_error
;
}
}
free_on_error:
pKs
->
Release
();
}
...
...
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