[vlc-devel] commit: sout_InputSendBuffer(): use VLC_TS_INVALID ( Rafaël Carré )

git version control git at videolan.org
Mon Dec 7 07:11:00 CET 2009


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec  7 06:53:45 2009 +0100| [8b8cb3eca15f29ce2cdaafcab344ef4b52e32b6f] | committer: Rafaël Carré 

sout_InputSendBuffer(): use VLC_TS_INVALID

refs #3135

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8b8cb3eca15f29ce2cdaafcab344ef4b52e32b6f
---

 src/stream_output/stream_output.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/stream_output/stream_output.c b/src/stream_output/stream_output.c
index d3ed7eb..dfc2f23 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -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 );




More information about the vlc-devel mailing list