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
3cf4ef1e
Commit
3cf4ef1e
authored
May 15, 2007
by
Ken Self
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved handling of no-signal condition and other errors
parent
68d81870
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
14 deletions
+37
-14
modules/access/bda/bda.c
modules/access/bda/bda.c
+11
-1
modules/access/bda/bdagraph.cpp
modules/access/bda/bdagraph.cpp
+26
-13
No files found.
modules/access/bda/bda.c
View file @
3cf4ef1e
...
...
@@ -49,7 +49,11 @@ static int Control( access_t *, int, va_list );
#define DEVICE_LONGTEXT ""
#define FREQ_TEXT N_("Transponder/multiplex frequency")
#define FREQ_LONGTEXT N_("In kHz for DVB-S or Hz for DVB-C/T")
#if defined(WIN32) || defined(WINCE)
# define FREQ_LONGTEXT N_("In kHz for DVB-S or Hz for DVB-C/T")
#else
# define FREQ_LONGTEXT N_("In kHz for DVB-C/S/T")
#endif
#define INVERSION_TEXT N_("Inversion mode")
#define INVERSION_LONGTEXT N_("Inversion mode [0=off, 1=on, 2=auto]")
...
...
@@ -495,11 +499,17 @@ static block_t *Block( access_t *p_access )
l_buffer_len
=
dvb_GetBufferSize
(
p_access
);
if
(
l_buffer_len
<
0
)
{
p_access
->
info
.
b_eof
=
VLC_TRUE
;
return
NULL
;
}
p_block
=
block_New
(
p_access
,
l_buffer_len
);
if
(
dvb_ReadBuffer
(
p_access
,
&
l_buffer_len
,
p_block
->
p_buffer
)
<
0
)
{
p_access
->
info
.
b_eof
=
VLC_TRUE
;
return
NULL
;
}
return
p_block
;
}
modules/access/bda/bdagraph.cpp
View file @
3cf4ef1e
...
...
@@ -37,38 +37,51 @@ extern "C" {
void
dvb_deleteBDAGraph
(
access_t
*
p_access
)
{
delete
p_access
->
p_sys
->
p_bda_module
;
if
(
p_access
->
p_sys
->
p_bda_module
)
delete
p_access
->
p_sys
->
p_bda_module
;
};
int
dvb_SubmitATSCTuneRequest
(
access_t
*
p_access
)
{
return
p_access
->
p_sys
->
p_bda_module
->
SubmitATSCTuneRequest
();
if
(
p_access
->
p_sys
->
p_bda_module
)
return
p_access
->
p_sys
->
p_bda_module
->
SubmitATSCTuneRequest
();
return
VLC_EGENERIC
;
};
int
dvb_SubmitDVBTTuneRequest
(
access_t
*
p_access
)
{
return
p_access
->
p_sys
->
p_bda_module
->
SubmitDVBTTuneRequest
();
if
(
p_access
->
p_sys
->
p_bda_module
)
return
p_access
->
p_sys
->
p_bda_module
->
SubmitDVBTTuneRequest
();
return
VLC_EGENERIC
;
};
int
dvb_SubmitDVBCTuneRequest
(
access_t
*
p_access
)
{
return
p_access
->
p_sys
->
p_bda_module
->
SubmitDVBCTuneRequest
();
if
(
p_access
->
p_sys
->
p_bda_module
)
return
p_access
->
p_sys
->
p_bda_module
->
SubmitDVBCTuneRequest
();
return
VLC_EGENERIC
;
};
int
dvb_SubmitDVBSTuneRequest
(
access_t
*
p_access
)
{
return
p_access
->
p_sys
->
p_bda_module
->
SubmitDVBSTuneRequest
();
if
(
p_access
->
p_sys
->
p_bda_module
)
return
p_access
->
p_sys
->
p_bda_module
->
SubmitDVBSTuneRequest
();
return
VLC_EGENERIC
;
};
long
dvb_GetBufferSize
(
access_t
*
p_access
)
{
return
p_access
->
p_sys
->
p_bda_module
->
GetBufferSize
();
if
(
p_access
->
p_sys
->
p_bda_module
)
return
p_access
->
p_sys
->
p_bda_module
->
GetBufferSize
();
return
-
1
;
};
long
dvb_ReadBuffer
(
access_t
*
p_access
,
long
*
l_buffer_len
,
BYTE
*
p_buff
)
{
return
p_access
->
p_sys
->
p_bda_module
->
ReadBuffer
(
l_buffer_len
,
p_buff
);
if
(
p_access
->
p_sys
->
p_bda_module
)
return
p_access
->
p_sys
->
p_bda_module
->
ReadBuffer
(
l_buffer_len
,
p_buff
);
return
-
1
;
};
};
...
...
@@ -460,7 +473,7 @@ int BDAGraph::SubmitDVBSTuneRequest()
hr
=
CreateTuneRequest
();
if
(
FAILED
(
hr
)
)
{
msg_Warn
(
p_access
,
"SubmitDVB
C
TuneRequest: "
\
msg_Warn
(
p_access
,
"SubmitDVB
S
TuneRequest: "
\
"Cannot create Tune Request: hr=0x%8lx"
,
hr
);
return
VLC_EGENERIC
;
}
...
...
@@ -469,7 +482,7 @@ int BDAGraph::SubmitDVBSTuneRequest()
(
void
**
)
&
l
.
p_dvbs_tune_request
);
if
(
FAILED
(
hr
)
)
{
msg_Warn
(
p_access
,
"SubmitDVB
C
TuneRequest: "
\
msg_Warn
(
p_access
,
"SubmitDVB
S
TuneRequest: "
\
"Cannot QI for IDVBTuneRequest: hr=0x%8lx"
,
hr
);
return
VLC_EGENERIC
;
}
...
...
@@ -481,7 +494,7 @@ int BDAGraph::SubmitDVBSTuneRequest()
IID_IDVBSLocator
,
(
void
**
)
&
l
.
p_dvbs_locator
);
if
(
FAILED
(
hr
)
)
{
msg_Warn
(
p_access
,
"SubmitDVB
C
TuneRequest: "
\
msg_Warn
(
p_access
,
"SubmitDVB
S
TuneRequest: "
\
"Cannot create the DVBS Locator: hr=0x%8lx"
,
hr
);
return
VLC_EGENERIC
;
}
...
...
@@ -503,7 +516,7 @@ int BDAGraph::SubmitDVBSTuneRequest()
hr
=
l
.
p_dvbs_locator
->
put_SignalPolarisation
(
i_polar
);
if
(
FAILED
(
hr
)
)
{
msg_Warn
(
p_access
,
"SubmitDVB
C
TuneRequest: "
\
msg_Warn
(
p_access
,
"SubmitDVB
S
TuneRequest: "
\
"Cannot set tuning parameters on Locator: hr=0x%8lx"
,
hr
);
return
VLC_EGENERIC
;
}
...
...
@@ -511,7 +524,7 @@ int BDAGraph::SubmitDVBSTuneRequest()
hr
=
p_tune_request
->
put_Locator
(
l
.
p_dvbs_locator
);
if
(
FAILED
(
hr
)
)
{
msg_Warn
(
p_access
,
"SubmitDVB
C
TuneRequest: "
\
msg_Warn
(
p_access
,
"SubmitDVB
S
TuneRequest: "
\
"Cannot put the locator: hr=0x%8lx"
,
hr
);
return
VLC_EGENERIC
;
}
...
...
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