info->idle_source = g_timeout_source_new (SIGNAL_DELAY_MSEC); } g_source_set_callback (info->idle_source, idle_callback, info,NULL); g_source_attach (info->idle_source,NULL); } } 开发者ID:City-busz,项目名称:caja,代码行数:27,代码来源:caja-progress-info.c 示例4: queue_notificati...
static gboolean prepare_func( GSource *source_, gint *timeout ) { DemoSource* source = (DemoSource*)source_; GTimeVal now, target; glong diff; cur_source_name = get_source_str( source_ ); g_source_get_current_time( source_, &now ); target = source->last; g_time_val_add( &targ...
下载的一些选项 */ var downloadAndroidPkg = function (opts) { if (downLoadHandler) { clearTimeout(downLoadHandler); downLoadHandler = null; } var stTime = new Date().getTime(); downLoadHandler = setTimeout(function () { if (new Date().getTime() - stTime < 3000) { var source...
obs_source_output_video(data->source, NULL); if (obs_data_get_bool(data->settings, GST_MESSAGE_TYPE(message) == GST_MESSAGE_ERROR ? "restart_on_error" : "restart_on_eos") && data->timeout == NULL) { data->timeout = g_timeout_source_new(obs_data_get_int( ...
g_source_remove(m_muteTimerHandler); m_muteTimerHandler =g_timeout_add(0,reinterpret_cast<GSourceFunc>(mediaPlayerPrivateMuteChangeTimeoutCallback),this); } 开发者ID:alfintatorkace,项目名称:osx-10.9-opensource,代码行数:6,代码来源:MediaPlayerPrivateGStreamerBase.cpp ...
source released under the GNU General Public License (GPL) Version 2. See the COPYING file for a complete copy of the license. NEW RELEASES: --- To check for new releases, try the "Tools->Check for New Version" item in the menu. USING: --- Command line options: -midnight N If...
// 从 Element 的一端输入数据, Element 对数据进行一些处理,然后数据从 Element 的另一端输出 GstElement *pipeline, *audio_source, *tee, *audio_queue, *audio_convert, *audio_resample, *audio_sink; GstElement *video_queue, *visual, *video_convert, *video_sink; // Bus(总线) 主要用于向用户...
{ /* we are EOS, send end-of-stream and remove the source */ g_signal_emit_by_name (appsrc, "end-of-stream", &ret); return; } size = WIDTH * HEIGHT * 2; for (int i = 0; i < WIDTH*HEIGHT; i++) { b_white[i] = 0xFFFF; } buffer = gst_buffer_new_wrapped_full( (...
下载的一些选项 */ var downloadAndroidPkg = function (opts) { if (downLoadHandler) { clearTimeout(downLoadHandler); downLoadHandler = null; } var stTime = new Date().getTime(); downLoadHandler = setTimeout(function () { if (new Date().getTime() - stTime < 3000) { var sourc...
See our GitHub Source development tree athttps://github.com/cfg2html/cfg2html. From there, you may download the zip file athttps://github.com/cfg2html/cfg2html/archive/refs/heads/master.zipto your Downloads folder. Once extracted, one way to run the program is simply to run the cf...