minor fixes
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / file.C
index 07cddec4961fc9faf60fc0b36d3cab6622073e2b..3202057403e7c2540e8f8db3174963da546283aa 100644 (file)
@@ -387,8 +387,12 @@ const char *File::default_probes[] = {
        "PNG",
        "PPM",
        "JPEG",
+#ifdef HAVE_GIFLIB
        "GIF",
+#endif
+#ifdef HAVE_LIBDPX
        "DPX",
+#endif
 #ifdef HAVE_OPENEXR
        "EXR",
 #endif
@@ -400,7 +404,9 @@ const char *File::default_probes[] = {
        "OGG",
        "Vorbis",
 #endif
+#ifdef HAVE_LIBZMPEG
        "MPEG",
+#endif
        "EDL",
        "FFMPEG_Late",
 }; 
@@ -465,6 +471,7 @@ int File::probe()
                        file = new FileJPEG(this->asset, this);
                        return FILE_OK;
                }
+#ifdef HAVE_GIFLIB
                if( !strcmp(pref->name,"GIF") ) { // GIF file
                        if( FileGIFList::check_sig(this->asset) )
                                file = new FileGIFList(this->asset, this);
@@ -473,6 +480,7 @@ int File::probe()
                        else continue;
                        return FILE_OK;
                }
+#endif
 #ifdef HAVE_LIBDPX
                if( !strcmp(pref->name,"DPX") ) { // DPX file
                        if( !FileDPX::check_sig(this->asset, data) ) continue;
@@ -599,13 +607,14 @@ int File::open_file(Preferences *preferences,
        case FILE_JPEG_LIST:
                file = new FileJPEG(this->asset, this);
                break;
-
+#ifdef HAVE_GIFLIB
        case FILE_GIF:
                file = new FileGIF(this->asset, this);
                break;
        case FILE_GIF_LIST:
                file = new FileGIFList(this->asset, this);
                break;
+#endif
 #ifdef HAVE_LIBDPX
        case FILE_DPX:
        case FILE_DPX_LIST: