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

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

?? interface.c

?? video linux conference
?? C
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************** * interface.c: interface access for other threads * This library provides basic functions for threads to interact with user * interface, such as command line. ***************************************************************************** * Copyright (C) 1998-2004 VideoLAN * $Id: interface.c 10147 2005-03-05 17:18:30Z gbazin $ * * Authors: Vincent Seguin <seguin@via.ecp.fr> * * 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. *****************************************************************************//** *   \file *   This file contains functions related to interface management *//***************************************************************************** * Preamble *****************************************************************************/#include <stdlib.h>                                      /* free(), strtol() */#include <stdio.h>                                                   /* FILE */#include <string.h>                                            /* strerror() */#include <vlc/vlc.h>#include <vlc/input.h>#include "audio_output.h"#include "vlc_interface.h"#include "vlc_video.h"#include "video_output.h"#ifdef SYS_DARWIN#    include "Cocoa/Cocoa.h"#endif /* SYS_DARWIN *//***************************************************************************** * Local prototypes *****************************************************************************/static void Manager( intf_thread_t *p_intf );static void RunInterface( intf_thread_t *p_intf );static int SwitchIntfCallback( vlc_object_t *, char const *,                               vlc_value_t , vlc_value_t , void * );static int AddIntfCallback( vlc_object_t *, char const *,                            vlc_value_t , vlc_value_t , void * );#ifdef SYS_DARWIN/***************************************************************************** * VLCApplication interface *****************************************************************************/@interface VLCApplication : NSApplication{}@end#endif/***************************************************************************** * intf_Create: prepare interface before main loop ***************************************************************************** * This function opens output devices and creates specific interfaces. It sends * its own error messages. *****************************************************************************//** * Create the interface, and prepare it for main loop. * * \param p_this the calling vlc_object_t * \param psz_module a prefered interface module * \return a pointer to the created interface thread, NULL on error */intf_thread_t* __intf_Create( vlc_object_t *p_this, const char *psz_module ){    intf_thread_t * p_intf;    /* Allocate structure */    p_intf = vlc_object_create( p_this, VLC_OBJECT_INTF );    if( !p_intf )    {        msg_Err( p_this, "out of memory" );        return NULL;    }    p_intf->pf_request_window = NULL;    p_intf->pf_release_window = NULL;    p_intf->pf_control_window = NULL;    p_intf->b_play = VLC_FALSE;    /* Choose the best module */    p_intf->p_module = module_Need( p_intf, "interface", psz_module, 0 );    if( p_intf->p_module == NULL )    {        msg_Err( p_intf, "no suitable intf module" );        vlc_object_destroy( p_intf );        return NULL;    }    /* Initialize structure */    p_intf->b_menu        = VLC_FALSE;    p_intf->b_menu_change = VLC_FALSE;    /* Initialize mutexes */    vlc_mutex_init( p_intf, &p_intf->change_lock );    msg_Dbg( p_intf, "interface initialized" );    /* Attach interface to its parent object */    vlc_object_attach( p_intf, p_this );    return p_intf;}/***************************************************************************** * intf_RunThread: launch the interface thread ***************************************************************************** * This function either creates a new thread and runs the interface in it, * or runs the interface in the current thread, depending on b_block. *****************************************************************************//** * Run the interface thread. * * If b_block is not set, runs the interface in the thread, else, * creates a new thread and runs the interface. * \param p_intf the interface thread * \return VLC_SUCCESS on success, an error number else */int intf_RunThread( intf_thread_t *p_intf ){#ifdef SYS_DARWIN    NSAutoreleasePool * o_pool;    if( p_intf->b_block )    {        /* This is the primary intf */        /* Run a manager thread, launch the interface, kill the manager */        if( vlc_thread_create( p_intf, "manager", Manager,                               VLC_THREAD_PRIORITY_LOW, VLC_FALSE ) )        {            msg_Err( p_intf, "cannot spawn manager thread" );            return VLC_EGENERIC;        }    }    if( p_intf->b_block && strncmp( p_intf->p_module->psz_object_name,                                    "clivlc", 6) )    {        o_pool = [[NSAutoreleasePool alloc] init];        [VLCApplication sharedApplication];    }    if( p_intf->b_block &&        ( !strncmp( p_intf->p_module->psz_object_name, "macosx" , 6 ) ||          !strncmp( p_intf->p_vlc->psz_object_name, "clivlc", 6 ) ) )    {        /* VLC in normal primary interface mode */        RunInterface( p_intf );        p_intf->b_die = VLC_TRUE;    }    else    {        /* Run the interface in a separate thread */        if( vlc_thread_create( p_intf, "interface", RunInterface,                               VLC_THREAD_PRIORITY_LOW, VLC_FALSE ) )        {            msg_Err( p_intf, "cannot spawn interface thread" );            return VLC_EGENERIC;        }        if( p_intf->b_block )        {            /* VLC in primary interface mode with a working macosx vout */            [NSApp run];            p_intf->b_die = VLC_TRUE;        }    }#else    if( p_intf->b_block )    {        /* Run a manager thread, launch the interface, kill the manager */        if( vlc_thread_create( p_intf, "manager", Manager,                               VLC_THREAD_PRIORITY_LOW, VLC_FALSE ) )        {            msg_Err( p_intf, "cannot spawn manager thread" );            return VLC_EGENERIC;        }        RunInterface( p_intf );        p_intf->b_die = VLC_TRUE;        /* Do not join the thread... intf_StopThread will do it for us */    }    else    {        /* Run the interface in a separate thread */        if( vlc_thread_create( p_intf, "interface", RunInterface,                               VLC_THREAD_PRIORITY_LOW, VLC_FALSE ) )        {            msg_Err( p_intf, "cannot spawn interface thread" );            return VLC_EGENERIC;        }    }#endif    return VLC_SUCCESS;}/** * Stops the interface thread * * This function asks the interface thread to stop * \param p_intf the interface thread * \return nothing */void intf_StopThread( intf_thread_t *p_intf ){    /* Tell the interface to die */    if( !p_intf->b_block )    {        p_intf->b_die = VLC_TRUE;    }    /* Wait for the thread to exit */    vlc_thread_join( p_intf );

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
7777精品久久久大香线蕉| 日韩国产在线一| 丁香六月久久综合狠狠色| 久久久久久久久99精品| 成人小视频在线| 亚洲日本欧美天堂| 欧美视频在线观看一区二区| 国产精品一区二区久激情瑜伽| 精品女同一区二区| 国产a区久久久| 一区二区三区国产豹纹内裤在线 | 精品视频资源站| 色哟哟一区二区三区| 国产主播一区二区三区| 国产亚洲综合av| 91免费版在线看| 日韩不卡一二三区| 国产午夜精品一区二区| 91玉足脚交白嫩脚丫在线播放| 一区二区三区欧美日韩| 欧美成人一区二区三区片免费| 国产在线一区二区| 一区二区三区在线影院| 欧美大片一区二区三区| 91在线视频免费观看| 亚洲va韩国va欧美va精品| 亚洲精品一区二区三区福利 | 色欧美片视频在线观看| 日韩av中文在线观看| 欧美国产亚洲另类动漫| 欧美日韩精品综合在线| 国产精品性做久久久久久| 亚洲午夜一区二区| 国产日韩欧美制服另类| 日本精品一区二区三区高清| 日av在线不卡| 久久综合一区二区| 91国模大尺度私拍在线视频| 日韩黄色小视频| 中文字幕一区二区三区乱码在线| 国产欧美精品一区二区色综合 | 色女孩综合影院| 久久99精品国产| 亚洲一二三四在线观看| 久久蜜桃一区二区| 欧美性大战久久久久久久| 粉嫩av一区二区三区粉嫩| 日本大胆欧美人术艺术动态| 亚洲女爱视频在线| 国产日韩av一区| 欧美一区二区三区影视| 在线一区二区三区四区五区| 高清av一区二区| 另类小说色综合网站| 亚洲v中文字幕| 亚洲欧美日韩中文播放 | 国产高清在线精品| 欧美亚洲一区二区三区四区| 精油按摩中文字幕久久| 亚洲日本在线a| 欧美酷刑日本凌虐凌虐| 国产原创一区二区| 久久免费视频色| 欧美日韩1234| 亚洲成人三级小说| 欧美在线制服丝袜| av亚洲精华国产精华| 一区二区三区在线观看国产| 久久久久久久久蜜桃| 国产麻豆视频一区二区| 亚洲一区在线看| 在线观看免费视频综合| 美女视频黄 久久| 日韩亚洲欧美在线| 色综合久久久久| 亚洲视频免费在线| 豆国产96在线|亚洲| 亚洲成人免费影院| 欧美一级一区二区| 欧美中文字幕不卡| 91精品91久久久中77777| eeuss鲁片一区二区三区| 国产精品1区二区.| 成人午夜av电影| 97久久精品人人爽人人爽蜜臀| 成人免费视频国产在线观看| 久久国内精品自在自线400部| 国产一区二区视频在线| 国产成人av电影在线播放| 一区二区三区精品视频| 日日噜噜夜夜狠狠视频欧美人 | 一区二区三区资源| 久久久国产综合精品女国产盗摄| 精品久久一区二区三区| 久久久一区二区三区捆绑**| 国产欧美精品一区aⅴ影院| 亚洲永久免费av| 欧美xxxxx裸体时装秀| 久久―日本道色综合久久| 18涩涩午夜精品.www| 天堂av在线一区| 国产综合久久久久久久久久久久| 蜜臀av性久久久久av蜜臀妖精| 精品一区二区日韩| 91久久人澡人人添人人爽欧美| 欧美日韩免费一区二区三区| 久久久亚洲午夜电影| 天天操天天干天天综合网| 91丨porny丨户外露出| 97精品久久久午夜一区二区三区| 99国产精品久| 国产欧美日韩久久| 久久精品国产亚洲一区二区三区| 国产美女av一区二区三区| 成人做爰69片免费看网站| 国产日韩欧美高清| 成人久久18免费网站麻豆| 椎名由奈av一区二区三区| 成人av资源站| 久久精品视频免费| 91色综合久久久久婷婷| 丝袜亚洲另类欧美| 日韩欧美一级片| 国产老女人精品毛片久久| 久久色中文字幕| www.在线欧美| 中文字幕在线一区免费| 波多野结衣中文字幕一区| 亚洲国产精品成人综合| av在线不卡免费看| 亚洲18女电影在线观看| 中文字幕av不卡| 欧美变态口味重另类| 老色鬼精品视频在线观看播放| 91精品国产综合久久香蕉的特点| 亚洲成人午夜影院| 91精品国产综合久久精品| 蜜桃一区二区三区在线| 精品国产乱码久久久久久老虎| 国产经典欧美精品| 亚洲美女精品一区| 欧美成人一区二区三区在线观看| 成人激情免费电影网址| 美女视频免费一区| 一区二区成人在线| 欧美一区二区精品在线| 日韩在线观看一区二区| 久久久久久久综合| 欧美日韩高清在线播放| 成人一二三区视频| 日韩经典一区二区| 国产精品一区二区三区网站| 亚洲一区二区三区四区不卡| 亚洲精品视频在线| 亚洲精品中文在线影院| 一区二区三区.www| 91国模大尺度私拍在线视频| 精品一区二区三区视频| 三级欧美在线一区| 亚洲午夜久久久久| 日韩经典一区二区| 日韩不卡免费视频| 欧美aa在线视频| 蜜桃一区二区三区四区| 美国av一区二区| 日韩不卡一区二区| 日日噜噜夜夜狠狠视频欧美人 | 26uuu精品一区二区在线观看| 国产视频一区二区三区在线观看| 综合av第一页| 精品一区免费av| 在线观看不卡一区| 精品国产不卡一区二区三区| 亚洲视频精选在线| 日韩高清欧美激情| 在线观看av不卡| 欧美视频精品在线| 精品国产一二三区| 亚洲成年人影院| 色哟哟在线观看一区二区三区| 欧美性xxxxxx少妇| 色综合久久久久久久| 日韩欧美国产综合| 亚洲欧美国产毛片在线| 国产精品中文字幕一区二区三区| 91网页版在线| 精品国产乱码久久久久久牛牛 | 欧美在线不卡视频| 欧美一区二区福利视频| 国产香蕉久久精品综合网| 久久久久久夜精品精品免费| 天天色天天操综合| 色视频成人在线观看免| 国产精品第一页第二页第三页| 视频精品一区二区| 成人午夜激情影院| 欧美日本在线一区| 国产精品美女久久福利网站| 一区二区三区 在线观看视频| 久久精品国产精品亚洲综合|