Mercurial > mplayer.hg
comparison subreader.c @ 22256:3a30fc845a9c
10l: comparison of char* ptrs with string literals
author | faust3 |
---|---|
date | Mon, 19 Feb 2007 10:48:50 +0000 |
parents | ed81b9614148 |
children | 098e38f17263 |
comparison
equal
deleted
inserted
replaced
22255:5f1bf0a7ed42 | 22256:3a30fc845a9c |
---|---|
745 i++; | 745 i++; |
746 if (i>=SUB_MAX_TEXT) { mp_msg(MSGT_SUBREADER,MSGL_WARN,"Too many lines in a subtitle\n");current->lines=i;return current;} | 746 if (i>=SUB_MAX_TEXT) { mp_msg(MSGT_SUBREADER,MSGL_WARN,"Too many lines in a subtitle\n");current->lines=i;return current;} |
747 } | 747 } |
748 current->lines=i+1; | 748 current->lines=i+1; |
749 | 749 |
750 if ((current->text[0]=="") && (current->text[1]=="")) { | 750 if (!strlen(current->text[0]) && !strlen(current->text[1])) { |
751 #ifdef USE_SORTSUB | 751 #ifdef USE_SORTSUB |
752 previous_sub_end = 0; | 752 previous_sub_end = 0; |
753 #else | 753 #else |
754 // void subtitle -> end of previous marked and exit | 754 // void subtitle -> end of previous marked and exit |
755 previous_aqt_sub = NULL; | 755 previous_aqt_sub = NULL; |
801 i++; | 801 i++; |
802 if (i>=SUB_MAX_TEXT) { mp_msg(MSGT_SUBREADER,MSGL_WARN,"Too many lines in a subtitle\n");current->lines=i;return current;} | 802 if (i>=SUB_MAX_TEXT) { mp_msg(MSGT_SUBREADER,MSGL_WARN,"Too many lines in a subtitle\n");current->lines=i;return current;} |
803 } | 803 } |
804 current->lines=i+1; | 804 current->lines=i+1; |
805 | 805 |
806 if ((current->text[0]=="") && (i==0)) { | 806 if (!strlen(current->text[0]) && (i==0)) { |
807 #ifdef USE_SORTSUB | 807 #ifdef USE_SORTSUB |
808 previous_sub_end = 0; | 808 previous_sub_end = 0; |
809 #else | 809 #else |
810 // void subtitle -> end of previous marked and exit | 810 // void subtitle -> end of previous marked and exit |
811 previous_subrip09_sub = NULL; | 811 previous_subrip09_sub = NULL; |