[vlc-commits] [Git][videolan/vlc][master] livehttp: fix bad failure check
François Cartegnie (@fcartegnie)
gitlab at videolan.org
Fri Dec 31 10:27:04 UTC 2021
François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
187d2118 by Lyndon Brown at 2021-12-31T10:06:26+00:00
livehttp: fix bad failure check
- - - - -
1 changed file:
- modules/access_output/livehttp.c
Changes:
=====================================
modules/access_output/livehttp.c
=====================================
@@ -729,7 +729,7 @@ static void closeCurrentSegment( sout_access_out_t *p_access, sout_access_out_sy
vlc_close( p_sys->i_handle );
p_sys->i_handle = -1;
- if( ! ( us_asprintf( &segment->psz_duration, "%.2f", secf_from_vlc_tick( p_sys->current_segment_length )) ) )
+ if( us_asprintf( &segment->psz_duration, "%.2f", secf_from_vlc_tick( p_sys->current_segment_length ) ) == -1 )
{
msg_Err( p_access, "Couldn't set duration on closed segment");
return;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/187d2118b4c33712ba8cb5e027a423035eebdc29
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/187d2118b4c33712ba8cb5e027a423035eebdc29
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list