[vlc-commits] live555: use VLC_DEMUXER_* codes
Rémi Denis-Courmont
git at videolan.org
Sat Oct 10 10:17:22 CEST 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 10 08:40:56 2020 +0300| [48b847a41fe60a65811c512f5fcb87c6e6106fe8] | committer: Rémi Denis-Courmont
live555: use VLC_DEMUXER_* codes
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=48b847a41fe60a65811c512f5fcb87c6e6106fe8
---
modules/access/live555.cpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index 9d6e01ae32..01c535ca5b 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -1479,7 +1479,7 @@ static int Demux( demux_t *p_demux )
{
/* FIXME Make this configurable
msg_Err( p_demux, "no multicast data received in 36s, aborting" );
- return 0;
+ return VLC_DEMUXER_EOF;
*/
}
else if( !p_sys->b_multicast && !p_sys->b_paused &&
@@ -1494,21 +1494,21 @@ static int Demux( demux_t *p_demux )
if( RollOverTcp( p_demux ) )
{
msg_Err( p_demux, "TCP rollover failed, aborting" );
- return 0;
+ return VLC_DEMUXER_EOF;
}
- return 1;
+ return VLC_DEMUXER_SUCCESS;
}
msg_Err( p_demux, "no data received in 10s, aborting" );
- return 0;
+ return VLC_DEMUXER_EOF;
}
else if( !p_sys->b_multicast && !p_sys->b_paused &&
( p_sys->i_no_data_ti > 34 ) )
{
/* EOF ? */
msg_Warn( p_demux, "no data received in 10s, eof ?" );
- return 0;
+ return VLC_DEMUXER_EOF;
}
- return p_sys->b_error ? 0 : 1;
+ return p_sys->b_error ? VLC_DEMUXER_EOF : VLC_DEMUXER_SUCCESS;
}
/*****************************************************************************
More information about the vlc-commits
mailing list