]> git.sesse.net Git - vlc/blobdiff - src/stream_output/stream_output.c
sout_InputSendBuffer(): use VLC_TS_INVALID
[vlc] / src / stream_output / stream_output.c
index a6672dede5784847466da56805d9bda44a0beec1..dfc2f235cbf36894e6457d711f6da543f432ac31 100644 (file)
@@ -268,7 +268,8 @@ int sout_InputSendBuffer( sout_packetizer_input_t *p_input,
         block_Release( p_buffer );
         return VLC_SUCCESS;
     }
-    if( p_buffer->i_dts <= 0 )
+
+    if( p_buffer->i_dts <= VLC_TS_INVALID )
     {
         msg_Warn( p_sout, "trying to send non-dated packet to stream output!");
         block_Release( p_buffer );
@@ -404,7 +405,7 @@ int sout_AccessOutControl (sout_access_out_t *access, int query, ...)
 /*****************************************************************************
  * sout_MuxNew: create a new mux
  *****************************************************************************/
-sout_mux_t * sout_MuxNew( sout_instance_t *p_sout, char *psz_mux,
+sout_mux_t * sout_MuxNew( sout_instance_t *p_sout, const char *psz_mux,
                           sout_access_out_t *p_access )
 {
     static const char typename[] = "mux";