]> git.sesse.net Git - vlc/blobdiff - modules/stream_filter/dash/mpd/BasicCMParser.cpp
Dash: fix win32 compilation
[vlc] / modules / stream_filter / dash / mpd / BasicCMParser.cpp
index d72334b6138ea345cc2d734133a86e36c591a1f1..8ded464cfdcd69e9214af6b0a528dadeedb203b5 100644 (file)
@@ -81,6 +81,7 @@ bool    BasicCMParser::setMPD()
                      " the stream @type is Live" << std::endl;
         return false;
     }
+#ifdef HAVE_STRPTIME
     if ( it != attr.end() )
     {
         struct tm   t;
@@ -105,6 +106,7 @@ bool    BasicCMParser::setMPD()
         if ( res != NULL )
             this->mpd->setAvailabilityEndTime( mktime( &t ) );
     }
+#endif
     it = attr.find( "mediaPresentationDuration" );
     if ( it != attr.end() )
         this->mpd->setDuration( str_duration( it->second.c_str() ) );