]> git.sesse.net Git - vlc/commitdiff
MKV: remove unused variables
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 21 May 2011 21:24:26 +0000 (23:24 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 21 May 2011 21:52:08 +0000 (23:52 +0200)
modules/demux/mkv/chapter_command.cpp
modules/demux/mkv/chapter_command.hpp
modules/demux/mkv/demux.cpp
modules/demux/mkv/matroska_segment.cpp
modules/demux/mkv/matroska_segment_parse.cpp
modules/demux/mkv/mkv.hpp
modules/demux/mkv/stream_io_callback.cpp
modules/demux/mkv/stream_io_callback.hpp

index 293c5021c38a0f054c3e4956335fc66d2759fe71..d74f4eeb4b15bdb175e928dc88e529178f5a2493 100644 (file)
@@ -587,12 +587,12 @@ bool dvd_command_interpretor_c::Interpret( const binary * p_command, size_t i_si
 
 
 
-bool dvd_command_interpretor_c::MatchIsDomain( const chapter_codec_cmds_c &data, const void *p_cookie, size_t i_cookie_size )
+bool dvd_command_interpretor_c::MatchIsDomain( const chapter_codec_cmds_c &data, const void *, size_t )
 {
     return ( data.p_private_data != NULL && data.p_private_data->GetBuffer()[0] == MATROSKA_DVD_LEVEL_SS );
 }
 
-bool dvd_command_interpretor_c::MatchIsVMG( const chapter_codec_cmds_c &data, const void *p_cookie, size_t i_cookie_size )
+bool dvd_command_interpretor_c::MatchIsVMG( const chapter_codec_cmds_c &data, const void *, size_t )
 {
     if ( data.p_private_data == NULL || data.p_private_data->GetSize() < 2 )
         return false;
index a7a5d987f6b11395e12abe0675ad6f15ff6f955b..750b34186b345c1dfbc7c1b4a8ea38366518044d 100644 (file)
@@ -79,7 +79,7 @@ public:
     /// \return wether the codec has seeked in the files or not
     virtual bool Enter() { return false; }
     virtual bool Leave() { return false; }
-    virtual std::string GetCodecName( bool f_for_title = false ) const { return ""; }
+    virtual std::string GetCodecName( bool ) const { return ""; }
     virtual int16 GetTitleNumber() { return -1; }
 
     KaxChapterProcessPrivate *p_private_data;
index 6f87b997e7bb47b2e2aa3011762f13855d35f824..13ae5e0966b207ef71752d9e2a7ff630bea872b2 100644 (file)
@@ -87,6 +87,7 @@ void event_thread_t::ResetPci()
 int event_thread_t::EventMouse( vlc_object_t *p_this, char const *psz_var,
                                 vlc_value_t oldval, vlc_value_t newval, void *p_data )
 {
+    VLC_UNUSED( oldval ); VLC_UNUSED( newval );
     event_thread_t *p_ev = (event_thread_t *) p_data;
     vlc_mutex_lock( &p_ev->lock );
     if( psz_var[6] == 'c' )
@@ -118,6 +119,7 @@ int event_thread_t::EventKey( vlc_object_t *p_this, char const *,
 int event_thread_t::EventInput( vlc_object_t *p_this, char const *,
                                 vlc_value_t, vlc_value_t newval, void *p_data )
 {
+    VLC_UNUSED( p_this );
     event_thread_t *p_ev = (event_thread_t *) p_data;
     vlc_mutex_lock( &p_ev->lock );
     if( newval.i_int == INPUT_EVENT_VOUT )
@@ -130,7 +132,6 @@ int event_thread_t::EventInput( vlc_object_t *p_this, char const *,
     return VLC_SUCCESS;
 }
 
-
 void event_thread_t::EventThread()
 {
     demux_sys_t    *p_sys = p_demux->p_sys;
@@ -160,8 +161,6 @@ void event_thread_t::EventThread()
             break;
         }
 
-        bool b_activated = false;
-
         /* KEY part */
         if( i_key_action )
         {
@@ -266,8 +265,6 @@ void event_thread_t::EventThread()
                 }
                 break;
             case ACTIONID_NAV_ACTIVATE:
-                b_activated = true;
                 if ( i_curr_button > 0 && i_curr_button <= pci->hli.hl_gi.btn_ns )
                 {
                     btni_t button_ptr = pci->hli.btnit[i_curr_button-1];
@@ -304,7 +301,6 @@ void event_thread_t::EventThread()
 
                 msg_Dbg( p_demux, "Handle Mouse Event: Mouse clicked x(%d)*y(%d)", x, y);
 
-                b_activated = true;
                 // get current button
                 best = 0;
                 dist = 0x08000000; /* >> than  (720*720)+(567*567); */
@@ -435,6 +431,7 @@ void event_thread_t::EventThread()
 
     vlc_restorecancel (canc);
 }
+
 void *event_thread_t::EventThread(void *data)
 {
     static_cast<event_thread_t*>(data)->EventThread();
@@ -642,7 +639,7 @@ void demux_sys_t::PreloadLinked( matroska_segment_c *p_segment )
     virtual_segment_c *p_seg;
 
     p_current_segment = VirtualFromSegments( p_segment );
+
     used_segments.push_back( p_current_segment );
 
     // create all the other virtual segments of the family
@@ -771,7 +768,7 @@ void demux_sys_t::JumpTo( virtual_segment_c & vsegment, chapter_item_c * p_chapt
             vsegment.Seek( demuxer, p_chapter->i_user_start_time, -1, p_chapter, -1 );
         }
     }
+
 }
 
 matroska_segment_c *demux_sys_t::FindSegment( const EbmlBinary & uid ) const
index c08dc8c3f4624ace357d64ab2aec6ec7c5d738b0..7b24b341f1c0b712709dccb10b91485d18c701f7 100644 (file)
@@ -1125,12 +1125,8 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
             p_fmt->audio.i_rate = 8000;
             p_fmt->audio.i_blockalign = 0x14;
         }
-        /* disabled due to the potential "S_KATE" namespace issue */
         else if( !strcmp( p_tk->psz_codec, "S_KATE" ) )
         {
-            int i, i_offset = 1, i_extra, num_headers, size_so_far;
-            uint8_t *p_extra;
-
             p_tk->fmt.i_codec = VLC_CODEC_KATE;
             p_tk->fmt.subs.psz_encoding = strdup( "UTF-8" );
 
index d669c5cbd4aaa627fb5c2dcfac4a1cf5a841c5aa..ad31e0b6778ceb22ab8e8e16d85c2a1834ad62d5 100644 (file)
@@ -549,7 +549,7 @@ void matroska_segment_c::ParseTrackEntry( KaxTrackEntry *m )
 
                     i_display_unit = uint8( vdmode );
                     msg_Dbg( &sys.demuxer, "|   |   |   |   + Track Video Display Unit=%s",
-                             uint8( vdmode ) == 0 ? "pixels" : ( uint8( vdmode ) == 1 ? "centimeters": "inches" ) );
+                             i_display_unit == 0 ? "pixels" : ( i_display_unit == 1 ? "centimeters": "inches" ) );
                 }
                 else if( MKV_IS_ID( l, KaxVideoAspectRatio ) ) // UNUSED
                 {
index c7b6194be37353eed3a39d5482e6b4cb87e340be..38fe532678459dead03a1562864ab301a7be73fe 100644 (file)
@@ -179,7 +179,7 @@ typedef struct
     bool         b_enabled;
     unsigned int i_number;
 
-    int          i_extra_data;
+    unsigned int i_extra_data;
     uint8_t      *p_extra_data;
 
     char         *psz_codec;
index a4dbb6a97efcd350d773ced0e1e1bc16fbb17342..ae3cd8f5d706cedbdb00ae0567bf37c0917421ca 100644 (file)
@@ -82,3 +82,8 @@ uint64 vlc_stream_io_callback::getFilePointer( void )
     return stream_Tell( s );
 }
 
+size_t vlc_stream_io_callback::write(const void *, size_t )
+{
+    return 0;
+}
+
index ea6fbfb387d0e9879defdeacc988a8889ac124e4..c67faeb838e4ec504cdc5a83d0d264594c766e14 100644 (file)
@@ -44,7 +44,7 @@ class vlc_stream_io_callback: public IOCallback
 
     virtual uint32   read            ( void *p_buffer, size_t i_size);
     virtual void     setFilePointer  ( int64_t i_offset, seek_mode mode = seek_beginning );
-    virtual size_t   write           ( const void *p_buffer, size_t i_size) { return 0; }
+    virtual size_t   write           ( const void *p_buffer, size_t i_size);
     virtual uint64   getFilePointer  ( void );
     virtual void     close           ( void ) { return; }
 };