Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

subtitles.c File Reference

#include <stdlib.h>
#include <vlc/vlc.h>
#include <vlc/input.h>
#include "charset.h"
#include <ctype.h>

Go to the source code of this file.

Defines

#define DIRECTORY_SEPARATOR   '/'
#define MAX_SUBTITLE_FILES   128

Functions

char ** subtitles_Detect (input_thread_t *p_this, char *psz_path, char *psz_name)


Detailed Description

This file contains functions to dectect subtitle files.

Definition in file subtitles.c.


Define Documentation

#define DIRECTORY_SEPARATOR   '/'
 

What's between a directory and a filename?

Definition at line 51 of file subtitles.c.

Referenced by subtitles_Detect().

#define MAX_SUBTITLE_FILES   128
 

We are not going to autodetect more subtitle files than this.

Definition at line 57 of file subtitles.c.

Referenced by subtitles_Detect().


Function Documentation

char** subtitles_Detect input_thread_t *  p_this,
char *  psz_path,
char *  psz_name
 

Detect subtitle files.

When called this function will split up the psz_name string into a directory, filename and extension. It then opens the directory in which the file resides and tries to find possible matches of subtitles files.

Parameters:
p_this the calling input_thread_t
psz_path a list of subdirectories (separated by a ',') to look in.
psz_name the complete filename to base the search on.
Returns:
a NULL terminated array of filenames with detected possible subtitles. The array contains max MAX_SUBTITLE_FILES items and you need to free it after use.

Definition at line 270 of file subtitles.c.

References DIRECTORY_SEPARATOR, vlc_value_t::i_int, MAX_SUBTITLE_FILES, and var_Get.


Generated on Tue Dec 20 10:15:02 2005 for vlc-0.8.4a by  doxygen 1.4.2