Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
23767715
Commit
23767715
authored
Jan 16, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing files
parent
41351df4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
127 additions
and
0 deletions
+127
-0
modules/access/fs.c
modules/access/fs.c
+92
-0
modules/access/fs.h
modules/access/fs.h
+35
-0
No files found.
modules/access/fs.c
0 → 100644
View file @
23767715
/*****************************************************************************
* fs.c: file system access plugin
*****************************************************************************
* Copyright (C) 2001-2006 the VideoLAN team
* Copyright © 2006-2007 Rémi Denis-Courmont
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Rémi Denis-Courmont <rem # videolan # org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#include "fs.h"
#include <vlc_plugin.h>
#define CACHING_TEXT N_("Caching value (ms)")
#define CACHING_LONGTEXT N_( \
"Caching value for files, in milliseconds." )
#define NETWORK_CACHING_TEXT N_("Extra network caching value (ms)")
#define NETWORK_CACHING_LONGTEXT N_( \
"Supplementary caching value for remote files, in milliseconds." )
#define RECURSIVE_TEXT N_("Subdirectory behavior")
#define RECURSIVE_LONGTEXT N_( \
"Select whether subdirectories must be expanded.\n" \
"none: subdirectories do not appear in the playlist.\n" \
"collapse: subdirectories appear but are expanded on first play.\n" \
"expand: all subdirectories are expanded.\n" )
static
const
char
*
const
psz_recursive_list
[]
=
{
"none"
,
"collapse"
,
"expand"
};
static
const
char
*
const
psz_recursive_list_text
[]
=
{
N_
(
"none"
),
N_
(
"collapse"
),
N_
(
"expand"
)
};
#define IGNORE_TEXT N_("Ignored extensions")
#define IGNORE_LONGTEXT N_( \
"Files with these extensions will not be added to playlist when " \
"opening a directory.\n" \
"This is useful if you add directories that contain playlist files " \
"for instance. Use a comma-separated list of extensions." )
vlc_module_begin
()
set_description
(
N_
(
"File input"
)
)
set_shortname
(
N_
(
"File"
)
)
set_category
(
CAT_INPUT
)
set_subcategory
(
SUBCAT_INPUT_ACCESS
)
add_integer
(
"file-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
)
change_safe
()
add_integer
(
"network-caching"
,
3
*
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
NETWORK_CACHING_TEXT
,
NETWORK_CACHING_LONGTEXT
,
true
)
change_safe
()
add_obsolete_string
(
"file-cat"
)
set_capability
(
"access"
,
50
)
add_shortcut
(
"file"
)
add_shortcut
(
"fd"
)
add_shortcut
(
"stream"
)
set_callbacks
(
Open
,
Close
)
add_submodule
()
set_shortname
(
N_
(
"Directory"
)
)
set_description
(
N_
(
"Directory input"
)
)
set_capability
(
"access"
,
55
)
add_string
(
"recursive"
,
"expand"
,
NULL
,
RECURSIVE_TEXT
,
RECURSIVE_LONGTEXT
,
false
)
change_string_list
(
psz_recursive_list
,
psz_recursive_list_text
,
0
)
add_string
(
"ignore-filetypes"
,
"m3u,db,nfo,ini,jpg,jpeg,ljpg,gif,png,pgm,pgmyuv,pbm,pam,tga,bmp,pnm,xpm,xcf,pcx,tif,tiff,lbm,sfv,txt,sub,idx,srt,cue,ssa"
,
NULL
,
IGNORE_TEXT
,
IGNORE_LONGTEXT
,
false
)
#ifndef HAVE_FDOPENDIR
add_shortcut
(
"file"
)
#endif
add_shortcut
(
"directory"
)
add_shortcut
(
"dir"
)
set_callbacks
(
DirOpen
,
DirClose
)
vlc_module_end
()
modules/access/fs.h
0 → 100644
View file @
23767715
/*****************************************************************************
* fs.h: file system access plug-in common header
*****************************************************************************
* Copyright (C) 2009 Rémi Denis-Courmont
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <vlc_charset.h>
int
Open
(
vlc_object_t
*
);
void
Close
(
vlc_object_t
*
);
int
NoSeek
(
access_t
*
,
int64_t
);
ssize_t
FileRead
(
access_t
*
,
uint8_t
*
,
size_t
);
int
FileSeek
(
access_t
*
,
int64_t
);
int
FileControl
(
access_t
*
,
int
,
va_list
);
int
DirOpen
(
vlc_object_t
*
);
int
DirInit
(
access_t
*
p_access
,
DIR
*
handle
);
block_t
*
DirBlock
(
access_t
*
);
int
DirControl
(
access_t
*
,
int
,
va_list
);
void
DirClose
(
vlc_object_t
*
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment