]> git.sesse.net Git - vlc/blobdiff - modules/access/rtmp/access.c
Fix compiler warnings.
[vlc] / modules / access / rtmp / access.c
index 062aa0cb70dfe2fdd920b0fc5cfbd654fad2c22b..12d92d273fbdc03b3e98ebbcdd39b0d4688d3e5a 100644 (file)
@@ -28,6 +28,7 @@
 #endif
 
 #include <vlc/vlc.h>
+#include <vlc_plugin.h>
 #include <vlc_access.h>
 
 #include <vlc_network.h> /* DOWN: #include <network.h> */
@@ -306,7 +307,7 @@ static int Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
     rtmp_packet_t *rtmp_packet;
     uint8_t *tmp_buffer;
     ssize_t i_ret;
-    int i_len_tmp;
+    size_t i_len_tmp;
 
     i_len_tmp = 0;
 
@@ -367,7 +368,8 @@ static int Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
             i_len_tmp += i_len - i_len_tmp;
         }
     }
-    if( i_len_tmp > 0 ) {
+    if( i_len_tmp > 0 )
+    {
         if( p_sys->p_thread->result_publish )
         {
             /* Send publish onStatus event only once */
@@ -423,6 +425,8 @@ static int Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
  *****************************************************************************/
 static int Seek( access_t *p_access, int64_t i_pos )
 {
+    VLC_UNUSED( p_access );
+    VLC_UNUSED( i_pos );
 /*msg_Warn ( p_access, "Seek to %lld", i_pos);
     switch( rtmp_seek( p_access, i_pos ) )
     {