• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/minidlna.07.26/

Lines Matching refs:path

113 is_tivo_file(const char * path)
120 fd = open(path, O_RDONLY);
136 check_for_captions(const char * path, sqlite_int64 detailID)
143 sprintf(file, "%s", path);
157 //DEBUG DPRINTF(E_DEBUG, L_METADATA, "New file %s looks like a caption file.\n", path);
161 DPRINTF(E_DEBUG, L_METADATA, "No file found for caption %s.\n", path);
183 parse_nfo(const char * path, metadata_t * m)
192 if( stat(path, &file) != 0 ||
195 DPRINTF(E_INFO, L_METADATA, "Not parsing very large .nfo file %s\n", path);
198 DPRINTF(E_DEBUG, L_METADATA, "Parsing .nfo file: %s\n", path);
199 nfo = fopen(path, "r");
265 GetFolderMetadata(const char * name, const char * path, const char * artist, const char * genre, const char * album_art)
273 name, path, artist, artist, genre,
284 GetAudioMetadata(const char * path, char * name)
298 if ( stat(path, &file) != 0 )
302 if( ends_with(path, ".mp3") )
307 else if( ends_with(path, ".m4a") || ends_with(path, ".mp4") ||
308 ends_with(path, ".aac") || ends_with(path, ".m4p") )
313 else if( ends_with(path, ".3gp") )
318 else if( ends_with(path, ".wma") || ends_with(path, ".asf") )
323 else if( ends_with(path, ".flac") || ends_with(path, ".fla") || ends_with(path, ".flc") )
328 else if( ends_with(path, ".wav") )
333 else if( ends_with(path, ".ogg") )
338 else if( ends_with(path, ".pcm") )
345 DPRINTF(E_WARN, L_GENERAL, "Unhandled file extension on %s\n", path);
358 if( readtags((char *)path, &song, &file, lang, type) != 0 )
360 DPRINTF(E_WARN, L_GENERAL, "Cannot extract tags from %s!\n", path);
451 album_art = find_album_art(path, song.image, song.image_size);
458 path, file.st_size, file.st_mtime, m.duration, song.channels, song.bitrate, song.samplerate, m.date,
463 fprintf(stderr, "Error inserting details for '%s'!\n", path);
487 GetImageMetadata(const char * path, char * name)
505 //DEBUG DPRINTF(E_DEBUG, L_METADATA, "Parsing %s...\n", path);
506 if ( stat(path, &file) != 0 )
515 exif_loader_write_file(l, path);
537 image_get_jpeg_date_xmp(path, &m.date);
578 if( image_get_jpeg_resolution(path, &width, &height) != 0 || !width || !height )
580 infile = fopen(path, "r");
614 path, name, file.st_size, file.st_mtime, m.date, m.resolution, thumb, m.creator, m.dlna_pn, m.mime);
617 fprintf(stderr, "Error inserting details for '%s'!\n", path);
630 GetVideoMetadata(const char * path, char * name)
649 if ( stat(path, &file) != 0 )
655 if( av_open_input_file(&ctx, path, NULL, 0, NULL) != 0 )
657 DPRINTF(E_WARN, L_METADATA, "Opening %s failed!\n", path);
681 if( !is_audio(path) )
682 DPRINTF(E_DEBUG, L_METADATA, "File %s does not contain a video stream.\n", basename(path));
686 strcpy(nfo, path);
794 DPRINTF(E_DEBUG, L_METADATA, "Container: '%s' [%s]\n", ctx->iformat->name, basename(path));
823 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is %s MPEG2 TS\n", video_stream, basename(path), m.resolution);
844 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is %s MPEG2 PS\n", video_stream, basename(path), m.resolution);
856 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s [UNKNOWN CONTAINER] is %s MPEG2\n", video_stream, basename(path), m.resolution);
865 if( dlna_timestamp_is_present(path) )
900 DPRINTF(E_DEBUG, L_METADATA, "No DLNA profile found for TS/AVC/%cD file %s\n", res, basename(path));
920 !ends_with(path, ".mov") )
935 DPRINTF(E_DEBUG, L_METADATA, "No DLNA profile found for MP4/AVC/SD file %s\n", basename(path));
940 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is h.264\n", video_stream, basename(path));
945 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is %s XViD\n", video_stream, basename(path), m.resolution);
950 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is %s DiVX5\n", video_stream, basename(path), m.resolution);
955 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is DiVX\n", video_stream, basename(path));
958 else if( ends_with(path, ".3gp") && (strcmp(ctx->iformat->name, "mov,mp4,m4a,3gp,3g2,mj2") == 0) )
975 ctx->streams[audio_stream]->codec->codec_id, basename(path));
981 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is MPEG4 [%X]\n", video_stream, basename(path), ctx->streams[video_stream]->codec->codec_tag);
986 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is VC1\n", video_stream, basename(path));
1004 DPRINTF(E_DEBUG, L_METADATA, "No DLNA profile found for WMVSPML/0x%X file %s\n", audio_profile, basename(path));
1026 DPRINTF(E_DEBUG, L_METADATA, "No DLNA profile found for WMVMED/0x%X file %s\n", audio_profile, basename(path));
1045 DPRINTF(E_DEBUG, L_METADATA, "No DLNA profile found for WMVHIGH/0x%X file %s\n", audio_profile, basename(path));
1053 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is %s [type %d]\n", video_stream, basename(path), m.resolution, ctx->streams[video_stream]->codec->codec_id);
1068 if( ends_with(path, ".mov") )
1077 DPRINTF(E_WARN, L_METADATA, "%s: Unhandled format: %s\n", path, ctx->iformat->name);
1081 if( ends_with(path, ".TiVo") && is_tivo_file(path) )
1087 album_art = find_album_art(path, NULL, 0);
1094 path, file.st_size, file.st_mtime, m.duration,
1101 fprintf(stderr, "Error inserting details for '%s'!\n", path);
1107 check_for_captions(path, ret);