Mercurial > mplayer.hg
comparison subreader.c @ 2915:80954dfeabed
fopen(NULL,r) segfault on qnx
author | iive |
---|---|
date | Thu, 15 Nov 2001 16:46:52 +0000 |
parents | 2f04b5f9a615 |
children | 0cf593b6bab0 |
comparison
equal
deleted
inserted
replaced
2914:1ccec8cd9310 | 2915:80954dfeabed |
---|---|
584 sub_read_line_dunnowhat, | 584 sub_read_line_dunnowhat, |
585 sub_read_line_mpsub, | 585 sub_read_line_mpsub, |
586 sub_read_line_aqt | 586 sub_read_line_aqt |
587 | 587 |
588 }; | 588 }; |
589 | 589 if(filename==NULL) return NULL; //qnx segfault |
590 fd=fopen (filename, "r"); if (!fd) return NULL; | 590 fd=fopen (filename, "r"); if (!fd) return NULL; |
591 | 591 |
592 sub_format=sub_autodetect (fd); | 592 sub_format=sub_autodetect (fd); |
593 if (sub_format==SUB_INVALID) {printf ("SUB: Could not determine file format\n");return NULL;} | 593 if (sub_format==SUB_INVALID) {printf ("SUB: Could not determine file format\n");return NULL;} |
594 printf ("SUB: Detected subtitle file format: %d\n",sub_format); | 594 printf ("SUB: Detected subtitle file format: %d\n",sub_format); |