Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Opusfile
Commits
4e06a90e
Commit
4e06a90e
authored
May 13, 2013
by
Ron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow the examples to build with --disable-http
parent
428b6bc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
examples/opusfile_example.c
examples/opusfile_example.c
+4
-0
examples/seeking_example.c
examples/seeking_example.c
+4
-0
No files found.
examples/opusfile_example.c
View file @
4e06a90e
...
...
@@ -155,7 +155,11 @@ int main(int _argc,const char **_argv){
}
else
{
/*Try to treat the argument as a URL.*/
#if defined(OP_ENABLE_HTTP)
of
=
op_open_url
(
_argv
[
1
],
&
ret
,
NULL
);
#else
of
=
NULL
;
#endif
#if 0
if(of==NULL){
OpusFileCallbacks cb={NULL,NULL,NULL,NULL};
...
...
examples/seeking_example.c
View file @
4e06a90e
...
...
@@ -275,8 +275,12 @@ int main(int _argc,const char **_argv){
if
(
strcmp
(
_argv
[
1
],
"-"
)
==
0
)
fp
=
op_fdopen
(
&
cb
,
fileno
(
stdin
),
"rb"
);
else
{
/*Try to treat the argument as a URL.*/
#if defined(OP_ENABLE_HTTP)
fp
=
op_url_stream_create
(
&
cb
,
_argv
[
1
],
OP_SSL_SKIP_CERTIFICATE_CHECK
(
1
),
NULL
);
#else
fp
=
NULL
;
#endif
/*Fall back assuming it's a regular file name.*/
if
(
fp
==
NULL
)
fp
=
op_fopen
(
&
cb
,
_argv
[
1
],
"rb"
);
}
...
...
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