亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
91精品国产综合久久久久久漫画| 成人h版在线观看| 国产精品久久久久天堂| 26uuu国产一区二区三区| 欧美三级电影在线观看| 99久久精品免费看国产免费软件| 国产高清久久久久| 男女性色大片免费观看一区二区| 亚洲bt欧美bt精品777| 亚洲成a人片在线观看中文| 亚洲色图一区二区| 国产精品视频免费看| 国产日韩精品久久久| 国产欧美日韩综合| 久久久久久久久97黄色工厂| 国产亚洲一本大道中文在线| 国产亚洲欧美在线| 国产精品家庭影院| 亚洲精品亚洲人成人网在线播放| 亚洲精品菠萝久久久久久久| 亚洲综合小说图片| 日本不卡的三区四区五区| 六月丁香综合在线视频| 国产一区二区久久| 岛国一区二区在线观看| 91免费在线视频观看| 欧美性感一类影片在线播放| 欧美精品免费视频| 精品粉嫩aⅴ一区二区三区四区| 精品国产乱码久久久久久牛牛| 久久久精品欧美丰满| 国产精品丝袜黑色高跟| 亚洲一区二三区| 日本中文一区二区三区| 国产永久精品大片wwwapp | 久久夜色精品国产欧美乱极品| 久久国产欧美日韩精品| 天天色 色综合| 美女视频免费一区| 成人一区二区三区在线观看| 色天天综合色天天久久| 91精品综合久久久久久| 在线电影院国产精品| 国产精品视频第一区| 国产剧情一区二区| 国产视频一区在线观看| 国产a级毛片一区| 国产日韩视频一区二区三区| 国产91色综合久久免费分享| 久久久另类综合| 国产成人丝袜美腿| 国产日韩欧美制服另类| 成人黄色网址在线观看| 成人欧美一区二区三区1314| 99久久久国产精品免费蜜臀| 一区二区三区日本| 欧美优质美女网站| 偷窥少妇高潮呻吟av久久免费| 欧美日韩中文另类| 蜜芽一区二区三区| 久久精品无码一区二区三区| 国产69精品久久99不卡| 日韩伦理电影网| 欧美日韩国产综合草草| 日本午夜精品视频在线观看| 国产午夜精品福利| 一本大道综合伊人精品热热| 视频一区中文字幕国产| 精品国产凹凸成av人导航| 性感美女久久精品| 久久精品网站免费观看| 色国产精品一区在线观看| 天使萌一区二区三区免费观看| 精品久久久久av影院| 99久久久国产精品免费蜜臀| 青草av.久久免费一区| 精品国产精品网麻豆系列 | 国产精品主播直播| 日韩美女视频一区| 日韩一二三区不卡| 97久久精品人人澡人人爽| 亚洲精品久久久蜜桃| 久久欧美一区二区| 欧美色精品天天在线观看视频| 免费成人性网站| 亚洲国产精品99久久久久久久久| 欧美理论片在线| 99久久综合色| 精品一区二区在线观看| 一区二区三区中文在线| 中文字幕精品一区二区三区精品| 欧美一区二区三区喷汁尤物| 色婷婷狠狠综合| 在线观看欧美黄色| 国产在线麻豆精品观看| 五月综合激情婷婷六月色窝| 一区在线中文字幕| 国产亚洲婷婷免费| 精品99一区二区| 欧美一级理论片| 欧美日韩aaaaa| 色综合久久九月婷婷色综合| 粉嫩aⅴ一区二区三区四区| 麻豆极品一区二区三区| 石原莉奈在线亚洲三区| 亚洲欧美日韩国产一区二区三区| 国产欧美日韩综合精品一区二区| 欧美精品v日韩精品v韩国精品v| 成人在线视频首页| 午夜在线电影亚洲一区| 精品国产在天天线2019| 成人少妇影院yyyy| 国产成人免费在线视频| 亚洲国产乱码最新视频| 久久久美女毛片| 精品一区二区免费视频| 精品亚洲国内自在自线福利| 综合中文字幕亚洲| 久久一留热品黄| 91在线视频播放地址| 国产一区二区三区四区五区入口 | 国产在线不卡一区| 亚洲裸体在线观看| 国产亚洲精品免费| 欧美日韩精品福利| 91精品国产手机| 成人免费看视频| 美日韩一级片在线观看| 日韩一级片网址| 日韩欧美综合在线| 欧美在线免费视屏| 成人av网址在线| 亚洲午夜久久久久| 亚洲精品乱码久久久久久日本蜜臀 | 精品制服美女丁香| 无码av免费一区二区三区试看| 亚洲精品中文在线影院| 亚洲欧洲三级电影| 欧美国产日韩精品免费观看| 欧美精品一区二区三区一线天视频| 欧美人牲a欧美精品| 欧美日韩成人综合天天影院| 欧美四级电影网| 91福利视频在线| 粉嫩av一区二区三区| 国产成人三级在线观看| 激情文学综合插| 精品亚洲国产成人av制服丝袜| 不卡一区二区中文字幕| 精品一区二区三区久久| 六月丁香婷婷久久| 亚洲一区二区视频在线观看| 美女一区二区三区在线观看| 男男成人高潮片免费网站| 日日欢夜夜爽一区| 精品制服美女丁香| 福利电影一区二区三区| 丰满白嫩尤物一区二区| 成人夜色视频网站在线观看| 欧美日韩综合色| 日韩午夜激情电影| 在线播放中文一区| 精品一区二区三区在线观看国产 | 亚洲色图制服诱惑 | 欧美性受xxxx| 欧美电视剧在线观看完整版| 日韩精品自拍偷拍| 久久精品人人做人人爽97| 久久精品一级爱片| 亚洲婷婷综合久久一本伊一区| 日韩欧美国产一区在线观看| 欧美色综合影院| 欧美视频在线一区二区三区| 日一区二区三区| 国产自产视频一区二区三区| 国产福利一区二区| 96av麻豆蜜桃一区二区| 5858s免费视频成人| 久久精品视频一区二区| 欧美一级日韩一级| 一区二区三区不卡在线观看| 五月天激情小说综合| 美女被吸乳得到大胸91| 91国产视频在线观看| 欧美一区欧美二区| 久久久亚洲国产美女国产盗摄| 日本成人在线视频网站| 国产成人在线视频网站| 91老司机福利 在线| 久久精品一二三| 一区二区三区av电影| 精品中文字幕一区二区| 国产宾馆实践打屁股91| 欧美精品乱人伦久久久久久| 国产三级欧美三级日产三级99| 久久久综合九色合综国产精品| 久久国产精品99精品国产 | 欧美日韩免费一区二区三区| 91精品国产综合久久久久久久 | 国产精品久久免费看|