[vlc-commits] asf: improve log message
Rémi Denis-Courmont
git at videolan.org
Wed Jul 22 16:09:08 CEST 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 22 17:04:17 2020 +0300| [788007c8f6a462376a5d9603f78dea3da20881d9] | committer: Rémi Denis-Courmont
asf: improve log message
Peeking is an irrelevant implementation detail here.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=788007c8f6a462376a5d9603f78dea3da20881d9
---
modules/demux/asf/asfpacket.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/asf/asfpacket.c b/modules/demux/asf/asfpacket.c
index 296cc39f3c..0b447352df 100644
--- a/modules/demux/asf/asfpacket.c
+++ b/modules/demux/asf/asfpacket.c
@@ -359,8 +359,8 @@ static int DemuxPayload(asf_packet_sys_t *p_packetsys, asf_packet_t *pkt, int i_
ssize_t i_return = vlc_stream_Peek( p_demux->s, &pkt->p_peek, pkt->left );
if ( i_return <= 0 || (size_t) i_return < pkt->left )
{
- msg_Warn( p_demux, "cannot peek, EOF ?" );
- return -1;
+ msg_Warn( p_demux, "unexpected end of file" );
+ return -1;
}
}
@@ -388,7 +388,7 @@ int DemuxASFPacket( asf_packet_sys_t *p_packetsys,
ssize_t i_return = vlc_stream_Peek( p_demux->s, &p_peek,i_data_packet_min );
if( i_return <= 0 || (size_t) i_return < i_data_packet_min )
{
- msg_Warn( p_demux, "cannot peek while getting new packet, EOF ?" );
+ msg_Warn( p_demux, "unexpected end of file" );
return 0;
}
unsigned int i_skip = 0;
@@ -455,7 +455,7 @@ int DemuxASFPacket( asf_packet_sys_t *p_packetsys,
i_return = vlc_stream_Peek( p_demux->s, &p_peek, pkt.length );
if( i_return <= 0 || pkt.length == 0 || (size_t)i_return < pkt.length )
{
- msg_Warn( p_demux, "cannot peek, EOF ?" );
+ msg_Warn( p_demux, "unexpected end of file" );
return 0;
}
More information about the vlc-commits
mailing list