[vlc-commits] demux: subtitle: the start/stop of the subtitle item are vlc_tick_t
Steve Lhomme
git at videolan.org
Wed Sep 19 15:46:16 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 1 14:06:33 2018 +0200| [b7d7db030497c1ff409286d5b271abe55f2b6dd7] | committer: Steve Lhomme
demux: subtitle: the start/stop of the subtitle item are vlc_tick_t
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7d7db030497c1ff409286d5b271abe55f2b6dd7
---
modules/demux/subtitle.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index 2b83e69632..8733d883e4 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -129,8 +129,8 @@ static void TextUnload( text_t * );
typedef struct
{
- int64_t i_start;
- int64_t i_stop;
+ vlc_tick_t i_start;
+ vlc_tick_t i_stop;
char *psz_text;
} subtitle_t;
@@ -891,7 +891,7 @@ static int Demux( demux_t *p_demux )
static int subtitle_cmp( const void *first, const void *second )
{
- int64_t result = ((subtitle_t *)(first))->i_start - ((subtitle_t *)(second))->i_start;
+ vlc_tick_t result = ((subtitle_t *)(first))->i_start - ((subtitle_t *)(second))->i_start;
/* Return -1, 0 ,1, and not directly subtraction
* as result can be > INT_MAX */
return result == 0 ? 0 : result > 0 ? 1 : -1;
@@ -1114,7 +1114,7 @@ static int ParseSubRipSubViewer( vlc_object_t *p_obj, subs_properties_t *p_props
/* subtitle_ParseSubRipTimingValue
* Parses SubRip timing value.
*/
-static int subtitle_ParseSubRipTimingValue(int64_t *timing_value,
+static int subtitle_ParseSubRipTimingValue(vlc_tick_t *timing_value,
const char *s)
{
int h1, m1, s1, d1 = 0;
More information about the vlc-commits
mailing list