亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? directory.c

?? video linux conference
?? C
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************** * directory.c: expands a directory (directory: access plug-in) ***************************************************************************** * Copyright (C) 2002-2004 VideoLAN * $Id: directory.c 10814 2005-04-26 07:23:56Z fenrir $ * * Authors: Derk-Jan Hartman <hartman at videolan dot 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., 59 Temple Place - Suite 330, Boston, MA  02111, USA. *****************************************************************************//***************************************************************************** * Preamble *****************************************************************************/#include <vlc/vlc.h>#include <vlc/input.h>#include <vlc_playlist.h>#include <stdlib.h>#include <string.h>#ifdef HAVE_SYS_TYPES_H#   include <sys/types.h>#endif#ifdef HAVE_SYS_STAT_H#   include <sys/stat.h>#endif#ifdef HAVE_ERRNO_H#   include <errno.h>#endif#ifdef HAVE_FCNTL_H#   include <fcntl.h>#endif#ifdef HAVE_UNISTD_H#   include <unistd.h>#elif defined( WIN32 ) && !defined( UNDER_CE )#   include <io.h>#elif defined( UNDER_CE )#   define strcoll strcmp#endif#ifdef HAVE_DIRENT_H#   include <dirent.h>#endif/***************************************************************************** * Module descriptor *****************************************************************************/static int  Open ( vlc_object_t * );static void Close( vlc_object_t * );static int  DemuxOpen ( vlc_object_t * );#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 char *psz_recursive_list[] = { "none", "collapse", "expand" };static char *psz_recursive_list_text[] = { N_("none"), N_("collapse"),                                           N_("expand") };#define IGNORE_TEXT N_("Ignore files with these extensions")#define IGNORE_LONGTEXT N_( \        "Specify a comma seperated list of file extensions. " \        "Files with these extensions will not be added to playlist when opening a directory. " \        "This is useful if you add directories that contain mp3 albums for instance." )vlc_module_begin();    set_category( CAT_INPUT );    set_shortname( _("Directory" ) );    set_subcategory( SUBCAT_INPUT_ACCESS );    set_description( _("Standard filesystem directory input") );    set_capability( "access2", 55 );    add_shortcut( "directory" );    add_shortcut( "dir" );    add_string( "recursive", "expand" , NULL, RECURSIVE_TEXT,                RECURSIVE_LONGTEXT, VLC_FALSE );      change_string_list( psz_recursive_list, psz_recursive_list_text, 0 );#ifdef HAVE_STRSEP    add_string( "ignore-filetypes", "m3u,nfo,jpg,gif,sfv,txt,sub,idx,srt,cue",                NULL, IGNORE_TEXT, IGNORE_LONGTEXT, VLC_FALSE );#endif    set_callbacks( Open, Close );    add_submodule();        set_description( "Directory EOF");        set_capability( "demux2", 0 );        add_shortcut( "directory" );        set_callbacks( DemuxOpen, NULL );vlc_module_end();/***************************************************************************** * Local prototypes, constants, structures *****************************************************************************/#define MODE_EXPAND 0#define MODE_COLLAPSE 1#define MODE_NONE 2static int Read( access_t *, uint8_t *, int );static int ReadNull( access_t *, uint8_t *, int );static int Control( access_t *, int, va_list );static int Demux( demux_t *p_demux );static int DemuxControl( demux_t *p_demux, int i_query, va_list args );static int ReadDir( playlist_t *, char *psz_name, int i_mode, int *pi_pos,                    playlist_item_t * );/***************************************************************************** * Open: open the directory *****************************************************************************/static int Open( vlc_object_t *p_this ){    access_t *p_access = (access_t*)p_this;#ifdef HAVE_SYS_STAT_H    struct stat stat_info;    if( ( stat( p_access->psz_path, &stat_info ) == -1 ) ||        !S_ISDIR( stat_info.st_mode ) )#elif defined(WIN32)    int i_ret;#   ifdef UNICODE    wchar_t psz_path[MAX_PATH];    mbstowcs( psz_path, p_access->psz_path, MAX_PATH );    psz_path[MAX_PATH-1] = 0;#   else    char *psz_path = p_access->psz_path;#   endif /* UNICODE */    i_ret = GetFileAttributes( psz_path );    if( i_ret == -1 || !(i_ret & FILE_ATTRIBUTE_DIRECTORY) )#else    if( strcmp( p_access->psz_access, "dir") &&        strcmp( p_access->psz_access, "directory") )#endif    {        return VLC_EGENERIC;    }    p_access->pf_read  = Read;    p_access->pf_block = NULL;    p_access->pf_seek  = NULL;    p_access->pf_control= Control;    /* Force a demux */    p_access->psz_demux = strdup( "directory" );    return VLC_SUCCESS;}/***************************************************************************** * Close: close the target *****************************************************************************/static void Close( vlc_object_t * p_this ){}/***************************************************************************** * ReadNull: read the directory *****************************************************************************/static int ReadNull( access_t *p_access, uint8_t *p_buffer, int i_len){    /* Return fake data */    memset( p_buffer, 0, i_len );    return i_len;}/***************************************************************************** * Read: read the directory *****************************************************************************/static int Read( access_t *p_access, uint8_t *p_buffer, int i_len){    char *psz_name = NULL;    char *psz;    int  i_mode, i_pos;    playlist_item_t *p_item;    vlc_bool_t b_play = VLC_FALSE;    playlist_t *p_playlist =        (playlist_t *) vlc_object_find( p_access,                                        VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );    if( !p_playlist )    {        msg_Err( p_access, "can't find playlist" );        goto end;    }    /* Remove the ending '/' char */    psz_name = strdup( p_access->psz_path );    if( psz_name == NULL )        goto end;    if( (psz_name[strlen(psz_name)-1] == '/') ||        (psz_name[strlen(psz_name)-1] == '\\') )    {        psz_name[strlen(psz_name)-1] = '\0';    }    /* Initialize structure */    psz = var_CreateGetString( p_access, "recursive" );    if( *psz == '\0' || !strncmp( psz, "none" , 4 )  )    {        i_mode = MODE_NONE;    }    else if( !strncmp( psz, "collapse", 8 )  )    {        i_mode = MODE_COLLAPSE;    }    else    {        i_mode = MODE_EXPAND;    }    free( psz );    /* Make sure we are deleted when we are done */    /* The playlist position we will use for the add */    i_pos = p_playlist->i_index + 1;    msg_Dbg( p_access, "opening directory `%s'", psz_name );    if( &p_playlist->status.p_item->input ==        ((input_thread_t *)p_access->p_parent)->input.p_item )    {        p_item = p_playlist->status.p_item;        b_play = VLC_TRUE;        msg_Dbg( p_access, "starting directory playback");    }    else    {        input_item_t *p_current = ( (input_thread_t*)p_access->p_parent)->                                                        input.p_item;        p_item = playlist_LockItemGetByInput( p_playlist, p_current );        msg_Dbg( p_access, "not starting directory playback");        if( !p_item )        {            msg_Dbg( p_playlist, "unable to find item in playlist");            return -1;        }        b_play = VLC_FALSE;    }    p_item->input.i_type = ITEM_TYPE_DIRECTORY;    if( ReadDir( p_playlist, psz_name , i_mode, &i_pos,                 p_item ) != VLC_SUCCESS )    {    }end:    /* Begin to read the directory */    if( b_play )    {        playlist_Control( p_playlist, PLAYLIST_VIEWPLAY,                          p_playlist->status.i_view,                          p_playlist->status.p_item, NULL );    }    if( psz_name ) free( psz_name );    vlc_object_release( p_playlist );    /* Return fake data forever */    p_access->pf_read = ReadNull;    return ReadNull( p_access, p_buffer, i_len );}/*****************************************************************************

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www激情久久| 日韩1区2区3区| 午夜不卡av在线| 丁香亚洲综合激情啪啪综合| 91久久久免费一区二区| 久久奇米777| 日韩精品乱码av一区二区| 成人av午夜电影| 日韩美女视频在线| 一区二区三区在线不卡| 国产一区二区视频在线| 欧美日韩精品系列| 亚洲特级片在线| 国产精品456露脸| 91精品国产高清一区二区三区 | 日韩福利视频网| 91免费视频大全| 久久综合九色欧美综合狠狠| 亚洲18色成人| 在线观看国产精品网站| 中文字幕免费不卡| 精品一区二区三区视频| 91麻豆精品国产自产在线| 亚洲猫色日本管| 99久久免费精品高清特色大片| 国产午夜精品理论片a级大结局| 亚洲国产毛片aaaaa无费看 | 亚洲与欧洲av电影| av综合在线播放| 欧美极品美女视频| 国产乱码精品一品二品| 2017欧美狠狠色| 国内精品国产成人国产三级粉色 | 欧美色综合网站| 亚洲欧美国产三级| 99精品久久99久久久久| 中文字幕亚洲精品在线观看| 国产精品一级黄| 国产精品三级久久久久三级| 国产成人综合在线播放| 国产日本一区二区| 国产mv日韩mv欧美| 国产日韩精品一区二区三区| 成人午夜av电影| 国产精品麻豆久久久| 99久久精品国产观看| 日本一区免费视频| av亚洲精华国产精华| 亚洲欧美自拍偷拍| 色先锋aa成人| 亚洲国产成人精品视频| 4438成人网| 国内久久精品视频| 欧美国产成人在线| 色婷婷综合久久久久中文| 亚洲线精品一区二区三区| 欧美另类高清zo欧美| 老司机精品视频一区二区三区| 久久人人97超碰com| 白白色 亚洲乱淫| 亚洲人成亚洲人成在线观看图片| 欧亚一区二区三区| 麻豆91精品视频| 国产日韩欧美精品一区| 99v久久综合狠狠综合久久| 亚洲国产精品久久一线不卡| 欧美刺激午夜性久久久久久久| 国内不卡的二区三区中文字幕| 中文字幕色av一区二区三区| 欧美日韩高清影院| 国产一区二区三区黄视频| 亚洲三级小视频| 日韩一区二区在线观看视频播放| 国产**成人网毛片九色 | 欧美猛男男办公室激情| 麻豆成人久久精品二区三区红 | 欧美精品一二三| 国产精品18久久久| 亚洲图片一区二区| 国产午夜精品在线观看| 欧美在线制服丝袜| 国产精品一区二区免费不卡| 亚洲综合在线五月| 欧美激情中文不卡| 欧美一卡二卡三卡| 欧美色大人视频| 国产精品一区二区黑丝| 亚洲va欧美va人人爽午夜 | 久久精品99国产精品日本| 国产精品久久久久久久久快鸭 | 国产精品久久久久久久午夜片 | 亚洲一卡二卡三卡四卡五卡| 久久精品夜夜夜夜久久| 欧美日韩视频不卡| 成人动漫av在线| 久久se精品一区二区| 亚洲国产精品精华液网站| 中文字幕一区二区不卡| 精品日韩一区二区| 制服丝袜日韩国产| 欧美色综合久久| 91农村精品一区二区在线| 国产一区 二区 三区一级| 视频一区二区三区在线| 亚洲国产一区二区三区| 亚洲天堂精品在线观看| 日本一区二区久久| 久久久久9999亚洲精品| 欧美成人性战久久| 日韩午夜av一区| 欧美电影影音先锋| 9191国产精品| 欧美日韩中文字幕一区| 在线看日本不卡| 色婷婷综合五月| 欧洲亚洲国产日韩| 91成人免费在线| 欧美色偷偷大香| 欧美午夜影院一区| 在线亚洲免费视频| 91看片淫黄大片一级在线观看| av一区二区不卡| 一本大道久久a久久精二百| 色综合久久久久网| 色噜噜狠狠一区二区三区果冻| 91老师片黄在线观看| 色悠久久久久综合欧美99| 欧美亚洲一区三区| 欧美日韩日日夜夜| 日韩欧美一级精品久久| 精品精品欲导航| 国产日韩视频一区二区三区| 国产精品天干天干在观线| 亚洲裸体xxx| 五月天丁香久久| 奇米一区二区三区| 九色综合狠狠综合久久| 国产高清成人在线| 欧美视频中文字幕| 欧美日韩日日夜夜| 欧美电视剧在线看免费| 日本一区二区免费在线观看视频 | 亚洲二区在线视频| 日本午夜精品视频在线观看| 国产一区二区在线观看视频| 成人午夜私人影院| 在线视频一区二区免费| 日韩三级.com| 欧美高清在线精品一区| 艳妇臀荡乳欲伦亚洲一区| 男女激情视频一区| 成人永久看片免费视频天堂| 在线精品视频一区二区| 日韩欧美一级二级三级| 国产精品国产a| 午夜久久电影网| 国产电影一区在线| 欧美影院精品一区| 国产肉丝袜一区二区| 亚洲自拍另类综合| 国产精品亚洲第一| 欧美日韩一卡二卡| 久久免费美女视频| 亚洲一二三四区不卡| 国产激情一区二区三区| 欧美日韩一二三区| 国产女同性恋一区二区| 午夜不卡在线视频| 成人av手机在线观看| 欧美精品久久天天躁| 日韩毛片精品高清免费| 国产真实乱偷精品视频免| 欧美体内she精视频| 欧美国产乱子伦| 日本亚洲电影天堂| 在线观看免费视频综合| 国产精品丝袜一区| 美女视频黄免费的久久| 欧美少妇bbb| 亚洲天堂免费看| 国产成人免费视频网站| 日韩欧美国产午夜精品| 亚洲成人精品影院| 一本到不卡精品视频在线观看| 国产日韩精品视频一区| 激情久久五月天| 欧美精品一二三| 一区二区三区不卡视频在线观看| 国产·精品毛片| 久久久久成人黄色影片| 狠狠色综合日日| 日韩精品中文字幕一区二区三区 | 99在线精品观看| 欧美激情中文字幕一区二区| 国产一区二区福利视频| 欧美一区二区性放荡片| 视频一区国产视频| 欧美一级片免费看| 日韩高清电影一区| 欧美精品v国产精品v日韩精品 |