Mercurial > mplayer.hg
comparison libass/ass_render.c @ 19906:f72c694ee566
Sort events by ReadOrder (if both layer and start time are equal).
author | eugeni |
---|---|
date | Tue, 19 Sep 2006 18:23:36 +0000 |
parents | 640093581779 |
children | 6a31849e2b80 |
comparison
equal
deleted
inserted
replaced
19905:5a24682d9dd5 | 19906:f72c694ee566 |
---|---|
1912 return 1; | 1912 return 1; |
1913 if (e1->Start < e2->Start) | 1913 if (e1->Start < e2->Start) |
1914 return -1; | 1914 return -1; |
1915 if (e1->Start > e2->Start) | 1915 if (e1->Start > e2->Start) |
1916 return 1; | 1916 return 1; |
1917 if (e1->ReadOrder < e2->ReadOrder) | |
1918 return -1; | |
1919 if (e1->ReadOrder > e2->ReadOrder) | |
1920 return 1; | |
1917 return 0; | 1921 return 0; |
1918 } | 1922 } |
1919 | 1923 |
1920 #define MAX_EVENTS 100 | 1924 #define MAX_EVENTS 100 |
1921 | 1925 |