Changeset 719151d261197f0a865d0afec5f1d273a884f648
- 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
| rb3524a5 |
r719151d |
|
| 1354 | 1354 | text_t *txt = &p_sys->txt; |
|---|
| 1355 | 1355 | char *psz_text; |
|---|
| | 1356 | int i; |
|---|
| 1356 | 1357 | |
|---|
| 1357 | 1358 | for( ;; ) |
|---|
| … | … | |
| 1380 | 1381 | free( psz_text ); |
|---|
| 1381 | 1382 | } |
|---|
| | 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 | |
|---|
| 1382 | 1391 | p_subtitle->psz_text = psz_text; |
|---|
| 1383 | 1392 | msg_Dbg( p_demux, "%s", psz_text ); |
|---|