[Cin] making --without-ogg works

Andrew Randrianasulu randrianasulu at gmail.com
Sat Apr 2 13:02:02 CEST 2022


right now this configure switch does not fully work

attached diff (plain diff, not for git am) fixes this for me.
please consider for inclusion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20220402/e0e950ba/attachment.htm>
-------------- next part --------------
diff --git a/cinelerra-5.1/cinelerra/file.C b/cinelerra-5.1/cinelerra/file.C
index 33cc7e8b..655d858d 100644
--- a/cinelerra-5.1/cinelerra/file.C
+++ b/cinelerra-5.1/cinelerra/file.C
@@ -1328,8 +1328,10 @@ const char* File::formattostr(int format)
 	case FILE_TGA_LIST:	return _(TGA_LIST_NAME);
 	case FILE_TIFF:		return _(TIFF_NAME);
 	case FILE_TIFF_LIST:	return _(TIFF_LIST_NAME);
+#ifdef HAVE_OGG
 	case FILE_OGG:		return _(OGG_NAME);
 	case FILE_VORBIS:	return _(VORBIS_NAME);
+#endif
 	case FILE_RAWDV:	return _(RAWDV_NAME);
 	case FILE_FFMPEG:	return _(FFMPEG_NAME);
 	case FILE_DB:		return _(DBASE_NAME);
diff --git a/cinelerra-5.1/cinelerra/fileogg.C b/cinelerra-5.1/cinelerra/fileogg.C
index 63f68098..a44f780c 100644
--- a/cinelerra-5.1/cinelerra/fileogg.C
+++ b/cinelerra-5.1/cinelerra/fileogg.C
@@ -17,6 +17,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
+#ifdef HAVE_OGG
 
 #include "asset.h"
 #include "bcsignals.h"
@@ -1914,3 +1915,4 @@ int OGGTheoraSharpness::handle_event()
 }
 
 
+#endif
\ No newline at end of file


More information about the Cin mailing list