shithub: opusfile

Download patch

ref: 709396d5fe113d0fea59d73014b81c7182ab86e4
parent: 134886562f5fdfca6cc464757d0e49fd8f14341a
author: Ron <ron@debian.org>
date: Mon May 13 13:35:41 EDT 2013

Revert "Allow the examples to build with --disable-http"

This reverts commit 4e06a90ef61ad34d9812fb4578a4c640f868ad00.
We don't need this if we always build libopusurl.

--- a/examples/opusfile_example.c
+++ b/examples/opusfile_example.c
@@ -155,11 +155,7 @@
   }
   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};
--- a/examples/seeking_example.c
+++ b/examples/seeking_example.c
@@ -275,12 +275,8 @@
   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");
   }