* Streamline some TiVo ifdefs.
This commit is contained in:
20
metadata.c
20
metadata.c
@ -210,26 +210,6 @@ dlna_timestamp_is_present(const char *filename, int *raw_packet_size)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef TIVO_SUPPORT
|
||||
int
|
||||
is_tivo_file(const char *path)
|
||||
{
|
||||
unsigned char buf[5];
|
||||
unsigned char hdr[5] = { 'T','i','V','o','\0' };
|
||||
int fd;
|
||||
|
||||
/* read file header */
|
||||
fd = open(path, O_RDONLY);
|
||||
if( !fd )
|
||||
return 0;
|
||||
if( read(fd, buf, 5) < 0 )
|
||||
buf[0] = 'X';
|
||||
close(fd);
|
||||
|
||||
return !memcmp(buf, hdr, 5);
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
check_for_captions(const char *path, int64_t detailID)
|
||||
{
|
||||
|
Reference in New Issue
Block a user