• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/minidlna.03.14/

Lines Matching refs:path

170 is_tivo_file(const char * path)
177 fd = open(path, O_RDONLY);
186 check_for_captions(const char * path, sqlite_int64 detailID)
191 sprintf(file, "%s", path);
201 //DEBUG DPRINTF(E_DEBUG, L_METADATA, "New file %s looks like a caption file.\n", path);
206 //DPRINTF(E_DEBUG, L_METADATA, "No file found for caption %s.\n", path);
226 parse_nfo(const char * path, metadata_t * m)
235 if( stat(path, &file) != 0 ||
238 DPRINTF(E_INFO, L_METADATA, "Not parsing very large .nfo file %s\n", path);
241 DPRINTF(E_DEBUG, L_METADATA, "Parsing .nfo file: %s\n", path);
242 nfo = fopen(path, "r");
314 GetFolderMetadata(const char * name, const char * path, const char * artist, const char * genre, sqlite3_int64 album_art)
322 name, path, artist, artist, genre, album_art);
332 GetAudioMetadata(const char * path, char * name)
346 if ( stat(path, &file) != 0 )
350 if( ends_with(path, ".mp3") )
355 else if( ends_with(path, ".m4a") || ends_with(path, ".mp4") ||
356 ends_with(path, ".aac") || ends_with(path, ".m4p") )
361 else if( ends_with(path, ".3gp") )
366 else if( ends_with(path, ".wma") || ends_with(path, ".asf") )
371 else if( ends_with(path, ".flac") || ends_with(path, ".fla") || ends_with(path, ".flc") )
376 else if( ends_with(path, ".wav") )
381 else if( ends_with(path, ".ogg") || ends_with(path, ".oga") )
386 else if( ends_with(path, ".pcm") )
393 DPRINTF(E_WARN, L_GENERAL, "Unhandled file extension on %s\n", path);
405 if( readtags((char *)path, &song, &file, lang, type) != 0 )
407 DPRINTF(E_WARN, L_GENERAL, "Cannot extract tags from %s!\n", path);
501 album_art = find_album_art(path, song.image, song.image_size);
508 path, (long long)file.st_size, file.st_mtime, m.duration, song.channels, song.bitrate, song.samplerate, m.date,
513 fprintf(stderr, "Error inserting details for '%s'!\n", path);
537 GetImageMetadata(const char * path, char * name)
555 //DEBUG DPRINTF(E_DEBUG, L_METADATA, "Parsing %s...\n", path);
556 if ( stat(path, &file) != 0 )
565 exif_loader_write_file(l, path);
588 image_get_jpeg_date_xmp(path, &m.date);
655 if( image_get_jpeg_resolution(path, &width, &height) != 0 || !width || !height )
657 infile = fopen(path, "r");
695 path, name, (long long)file.st_size, file.st_mtime, m.date, m.resolution,
699 fprintf(stderr, "Error inserting details for '%s'!\n", path);
712 GetVideoMetadata(const char * path, char * name)
732 if ( stat(path, &file) != 0 )
738 ret = lav_open(&ctx, path);
741 DPRINTF(E_WARN, L_METADATA, "Opening %s failed!\n", path);
767 if( !is_audio(path) )
768 DPRINTF(E_DEBUG, L_METADATA, "File %s does not contain a video stream.\n", basename(path));
772 strcpy(nfo, path);
884 DPRINTF(E_DEBUG, L_METADATA, "Container: '%s' [%s]\n", ctx->iformat->name, basename(path));
915 ends_with(path, ".mov") )
943 int dlna_ts_present = dlna_timestamp_is_present(path, &raw_packet_size);
945 video_stream, basename(path), m.resolution, raw_packet_size);
971 raw_packet_size, basename(path));
993 video_stream, basename(path), m.resolution);
1005 video_stream, basename(path), ctx->iformat->name, m.resolution);
1019 int dlna_ts_present = dlna_timestamp_is_present(path, &raw_packet_size);
1082 vc->profile, basename(path));
1099 m.dlna_pn, vc->width, vc->height, vc->bit_rate, basename(path));
1116 vc->bit_rate, audio_profile, basename(path));
1140 m.dlna_pn, basename(path));
1158 raw_packet_size, basename(path));
1286 m.dlna_pn, basename(path));
1302 vc->profile, basename(path));
1313 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is h.264\n", video_stream, basename(path));
1321 video_stream, basename(path),
1333 if( ends_with(path, ".3gp") )
1346 ac->codec_id, basename(path));
1390 DPRINTF(E_DEBUG, L_METADATA, "Skipping DLNA parsing for non-ASF VC1 file %s\n", path);
1395 DPRINTF(E_DEBUG, L_METADATA, "Stream %d of %s is VC1\n", video_stream, basename(path));
1412 audio_profile, basename(path));
1434 audio_profile, basename(path));
1458 audio_profile, basename(path));
1479 audio_profile, basename(path));
1490 video_stream, basename(path), m.resolution, vc->codec_id);
1503 if( ends_with(path, ".mov") )
1512 DPRINTF(E_WARN, L_METADATA, "%s: Unhandled format: %s\n", path, ctx->iformat->name);
1517 if( readtags((char *)path, &video, &file, "en_US", "asf") == 0 )
1571 if( ends_with(path, ".TiVo") && is_tivo_file(path) )
1585 album_art = find_album_art(path, video.image, video.image_size);
1593 path, (long long)file.st_size, file.st_mtime, m.duration,
1599 fprintf(stderr, "Error inserting details for '%s'!\n", path);
1605 check_for_captions(path, ret);