]> git.sesse.net Git - vlc/blobdiff - modules/demux/mkv/chapter_command.hpp
Do not use obsolescent ctime(_r)
[vlc] / modules / demux / mkv / chapter_command.hpp
index 98316a2ab00955464c50e03a384e8bba572eafd4..109d4bd43a23669649f6e3a0dc70409736acb161 100644 (file)
@@ -45,7 +45,7 @@ public:
     ,i_codec_id( codec_id )
     ,sys( demuxer )
     {}
+
     virtual ~chapter_codec_cmds_c()
     {
         delete p_private_data;
@@ -75,7 +75,7 @@ public:
     }
 
     void AddCommand( const KaxChapterProcessCommand & command );
+
     /// \return wether the codec has seeked in the files or not
     virtual bool Enter() { return false; }
     virtual bool Leave() { return false; }
@@ -110,9 +110,9 @@ public:
         p_PRMs[ 0x80 + 16 ] = 0xFFFFu;
         p_PRMs[ 0x80 + 18 ] = 0xFFFFu;
     }
+
     bool Interpret( const binary * p_command, size_t i_size = 8 );
+
     uint16 GetPRM( size_t index ) const
     {
         if ( index < 256 )
@@ -144,7 +144,7 @@ public:
         }
         return false;
     }
+
     bool SetGPRM( size_t index, uint16 value )
     {
         if ( index < 16 )
@@ -201,7 +201,7 @@ protected:
 
     uint16       p_PRMs[256];
     demux_sys_t  & sys;
+
     // DVD command IDs
 
     // Tests
@@ -214,7 +214,7 @@ protected:
     static const uint16 CMD_DVD_IF_GPREG_SUP        = (5 << 4);
     static const uint16 CMD_DVD_IF_GPREG_INF_EQUAL  = (6 << 4);
     static const uint16 CMD_DVD_IF_GPREG_INF        = (7 << 4);
+
     static const uint16 CMD_DVD_NOP                    = 0x0000;
     static const uint16 CMD_DVD_GOTO_LINE              = 0x0001;
     static const uint16 CMD_DVD_BREAK                  = 0x0002;
@@ -243,7 +243,7 @@ protected:
     static const uint16 CMD_DVD_MULT_GPREG             = 0x7500;
     static const uint16 CMD_DVD_GPREG_DIV_VALUE        = 0x7600;
     static const uint16 CMD_DVD_GPREG_AND_VALUE        = 0x7900;
+
     // callbacks when browsing inside CodecPrivate
     static bool MatchIsDomain     ( const chapter_codec_cmds_c &data, const void *p_cookie, size_t i_cookie_size );
     static bool MatchIsVMG        ( const chapter_codec_cmds_c &data, const void *p_cookie, size_t i_cookie_size );
@@ -280,10 +280,10 @@ public:
     {}
 
     bool Interpret( const binary * p_command, size_t i_size );
+
     // DVD command IDs
     static const std::string CMD_MS_GOTO_AND_PLAY;
+
 protected:
     demux_sys_t  & sys;
 };