From gitlab at videolan.org Wed Jun 19 13:10:31 2024 From: gitlab at videolan.org (Christophe Massiot (@cmassiot)) Date: Wed, 19 Jun 2024 15:10:31 +0200 Subject: [bTSstream-devel] [Git][videolan/bitstream][master] 2 commits: dvb/si/desc_58: fix printf format for time_t Message-ID: <6672d8c7d1446_dfac85ed2a9c7040a9@gitlab.mail> Christophe Massiot pushed to branch master at VideoLAN / bitstream Commits: 96af36eb by Cl?ment Vasseur at 2024-06-19T14:47:54+02:00 dvb/si/desc_58: fix printf format for time_t - - - - - c76e08a1 by Christophe Massiot at 2024-06-19T15:10:19+02:00 Merge branch 'nto-printf-time' - - - - - 1 changed file: - dvb/si/desc_58.h Changes: ===================================== dvb/si/desc_58.h ===================================== @@ -156,26 +156,26 @@ static inline void desc58_print(uint8_t *p_desc, f_print pf_print, case PRINT_XML: pf_print(opaque, "", (const char *)desc58n_get_country_code(p_desc_n), desc58n_get_country_region_id(p_desc_n), desc58n_get_lto_polarity(p_desc_n), desc58n_get_lt_offset(p_desc_n), - ts_time_of_change, txt_time_of_change, + difftime(ts_time_of_change, 0), txt_time_of_change, desc58n_get_next_offset(p_desc_n) ); break; default: pf_print(opaque, " - desc 58 local_time_offset country_code=%3.3s country_region_id=%u" - " lto_polarity=%u lto_offset=%04x time_of_change=%ld" + " lto_polarity=%u lto_offset=%04x time_of_change=%.f" " time_of_change_dec=\"%s\" next_time_offset=%04x", (const char *)desc58n_get_country_code(p_desc_n), desc58n_get_country_region_id(p_desc_n), desc58n_get_lto_polarity(p_desc_n), desc58n_get_lt_offset(p_desc_n), - ts_time_of_change, txt_time_of_change, + difftime(ts_time_of_change, 0), txt_time_of_change, desc58n_get_next_offset(p_desc_n) ); } View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/dcb62334b441c2d8dbeb256d8ebc2b7353c9a503...c76e08a1ecd005cceca0f6f6e7ee8f16b0d77e68 -- This project does not include diff previews in email notifications. View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/dcb62334b441c2d8dbeb256d8ebc2b7353c9a503...c76e08a1ecd005cceca0f6f6e7ee8f16b0d77e68 You're receiving this email because of your account on code.videolan.org. VideoLAN code repository instance