summaryrefslogtreecommitdiffstats
path: root/vobsub.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-08-31 22:36:27 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-08-31 22:36:27 +0000
commit078776801bc2807636ea45171cbd7ca2c06ae0f2 (patch)
tree6810ee04ebb39938bcbd514379f41dd954202565 /vobsub.c
parent908e6a761d276dc98fac7e2340bd67ff66dff235 (diff)
downloadmpv-078776801bc2807636ea45171cbd7ca2c06ae0f2.tar.bz2
mpv-078776801bc2807636ea45171cbd7ca2c06ae0f2.tar.xz
10l, lot of missing new-lines. In case of an error, all the messages will be screwed up
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10759 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vobsub.c')
-rw-r--r--vobsub.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/vobsub.c b/vobsub.c
index 4fbee89de9..66c23be718 100644
--- a/vobsub.c
+++ b/vobsub.c
@@ -327,7 +327,7 @@ mpeg_run(mpeg_t *mpeg)
else if ((c & 0xf0) == 0x20)
version = 2;
else {
- mp_msg(MSGT_VOBSUB,MSGL_ERR, "Unsupported MPEG version: 0x%02x", c);
+ mp_msg(MSGT_VOBSUB,MSGL_ERR, "VobSub: Unsupported MPEG version: 0x%02x\n", c);
return -1;
}
if (version == 4) {
@@ -940,16 +940,16 @@ vobsub_parse_ifo(void* this, const char *const name, unsigned int *palette, unsi
rar_stream_t *fd = rar_open(name, "rb");
if (fd == NULL) {
if (force)
- mp_msg(MSGT_VOBSUB,MSGL_ERR, "Can't open IFO file");
+ mp_msg(MSGT_VOBSUB,MSGL_ERR, "VobSub: Can't open IFO file\n");
} else {
// parse IFO header
unsigned char block[0x800];
const char *const ifo_magic = "DVDVIDEO-VTS";
if (rar_read(block, sizeof(block), 1, fd) != 1) {
if (force)
- mp_msg(MSGT_VOBSUB,MSGL_ERR, "Can't read IFO header");
+ mp_msg(MSGT_VOBSUB,MSGL_ERR, "VobSub: Can't read IFO header\n");
} else if (memcmp(block, ifo_magic, strlen(ifo_magic) + 1))
- mp_msg(MSGT_VOBSUB,MSGL_ERR, "Bad magic in IFO header\n");
+ mp_msg(MSGT_VOBSUB,MSGL_ERR, "VobSub: Bad magic in IFO header\n");
else {
unsigned long pgci_sector = block[0xcc] << 24 | block[0xcd] << 16
| block[0xce] << 8 | block[0xcf];
@@ -982,7 +982,7 @@ vobsub_parse_ifo(void* this, const char *const name, unsigned int *palette, unsi
}
if (rar_seek(fd, pgci_sector * sizeof(block), SEEK_SET)
|| rar_read(block, sizeof(block), 1, fd) != 1)
- mp_msg(MSGT_VOBSUB,MSGL_ERR, "Can't read IFO PGCI");
+ mp_msg(MSGT_VOBSUB,MSGL_ERR, "VobSub: Can't read IFO PGCI\n");
else {
unsigned long idx;
unsigned long pgc_offset = block[0xc] << 24 | block[0xd] << 16
@@ -1034,7 +1034,7 @@ vobsub_open(const char *const name,const char *const ifo,const int force,void**
fd = rar_open(buf, "rb");
if (fd == NULL) {
if(force)
- mp_msg(MSGT_VOBSUB,MSGL_ERR,"VobSub: Can't open IDX file");
+ mp_msg(MSGT_VOBSUB,MSGL_ERR,"VobSub: Can't open IDX file\n");
else {
free(buf);
free(vob);
@@ -1057,7 +1057,7 @@ vobsub_open(const char *const name,const char *const ifo,const int force,void**
mpg = mpeg_open(buf);
if (mpg == NULL) {
if(force)
- mp_msg(MSGT_VOBSUB,MSGL_ERR,"VobSub: Can't open SUB file");
+ mp_msg(MSGT_VOBSUB,MSGL_ERR,"VobSub: Can't open SUB file\n");
else {
free(buf);
@@ -1070,7 +1070,7 @@ vobsub_open(const char *const name,const char *const ifo,const int force,void**
off_t pos = mpeg_tell(mpg);
if (mpeg_run(mpg) < 0) {
if (!mpeg_eof(mpg))
- mp_msg(MSGT_VOBSUB,MSGL_ERR,"mpeg_run error");
+ mp_msg(MSGT_VOBSUB,MSGL_ERR,"VobSub: mpeg_run error\n");
break;
}
if (mpg->packet_size) {