Changeset 719151d261197f0a865d0afec5f1d273a884f648

Show
Ignore:
Timestamp:
05/13/08 21:45:12 (3 months ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1210707912 -0700
git-parent:

[b3524a50ba5a2a49ae4dca4faccd24d2266c34e3]

git-author:
Jean-Baptiste Kempf <jb@videolan.org> 1210707912 -0700
Message:

Support for multiple lines in PJS subs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/subtitle.c

    rb3524a5 r719151d  
    13541354    text_t      *txt = &p_sys->txt; 
    13551355    char *psz_text; 
     1356    int i; 
    13561357 
    13571358    for( ;; ) 
     
    13801381        free( psz_text ); 
    13811382    } 
     1383 
     1384    /* replace | by \n */ 
     1385    for( i = 0; psz_text[i] != '\0'; i++ ) 
     1386    { 
     1387        if( psz_text[i] == '|' ) 
     1388            psz_text[i] = '\n'; 
     1389    } 
     1390 
    13821391    p_subtitle->psz_text = psz_text; 
    13831392    msg_Dbg( p_demux, "%s", psz_text );