ret =gst_pad_push_event(rp->srcpad, event);break;caseGST_EVENT_NEWSEGMENT: { GstClockTimeDiff start, stop, time; gdouble rate, arate; gboolean update; GstFormat format;/* Only happens in push mode */gst_event_parse_new_segment_full (event, &update, &rate, &arate, &format, &start...
发送event的函数为 gst_pad_send_event 和 gst_pad_push_event。有些event可以指定为sticky。 pad是element推拉数据的介质,可以通过gst_pad_push和gst_pad_pull_range进行GstBuffer的推拉。一般情况下编写代码都是以plugin为单位,而pad往往作为element的成员变量,因此gst_pad_push和gst_pad_pull_range的入参往往是 ...
GstEvent *event;if(i %2) s = gst_structure_new ("stream-lock","lock", G_TYPE_BOOLEAN, FALSE,NULL);elses = gst_structure_new ("stream-lock","lock", G_TYPE_BOOLEAN, TRUE,NULL); event =gst_event_new_custom(GST_EVENT_CUSTOM_DOWNSTREAM_OOB, s); gst_pad_push_event (pad, event);...
<doc xml:space="preserve" filename="../subprojects/gstreamer/libs/gst/base/gstaggregator.c">This method will push the provided event downstream. If needed, mandatory events such as stream-start, caps, and segment events will be sent before pushing the event. This API does not allow pushing...
To send a GstEvent on a pad, use gst_pad_send_event and gst_pad_push_event. Some events will be sticky on the pad, meaning that after they pass on the pad they can be queried later with gst_pad_get_sticky_event and gst_pad_sticky_events_foreach. gst_pad_get_current_caps and gs...
GStreamer学习五(事件GstEvent) 技术标签:GStreamer 查看原文 gs--插件高级 ,gst_event_new_caps( fixed_caps )); }element2的处理则放在_init 注册的事件处理函数中:gst_pad_set_event_function(filter->sinkpad...gst_element_class_add_pad_template 注册了GstPadTemplate, 再在构造函数里面通过这些template...
if(!(res =gst_pad_push_event(sinkpad, gst_video_event_new_upstream_force_key_unit(running_time, TRUE, sink->index+1))) { GST_ERROR_OBJECT(sink,"Failed to push upstream force key unit event"); } out: /*mark as waiting for a fku event if the app schedules them or if we just...
static GstPadProbeReturn probe_on_fakesink_sink_pad (GstPad * pad, GstPadProbeInfo * info, gpointer u_data) { GstBuffer *buf = (GstBuffer *) info->data; GstMapInfo map_info = {0}; gboolean ok = gst_buffer_map(buf, &map_info, GST_MAP_READ); fail_unless(ok == TRUE); NvBufAud...
移除复用器接收器衬垫时,复用器发送GST_NVEVENT_PAD_DELETED事件。 这两个事件都包含要添加或删除的源的源 ID(请参阅sources/includes/gst-nvevent.h)。 下游元素在收到这些事件时可以重新配置。 此外,复用器还发送一个GST_NVEVENT_STREAM_EOS来指示来自源的 EOS。 复用器支持计算源帧的 NTP时间戳。它支持两种...
srcpad.push_event( Gst.event_new_custom(Gst.EVENT_CUSTOM_DOWNSTREAM, s)) 浏览完整代码 来源:kuscheduler.py 项目:sergiomb2/flumotion 示例2 def flumotion_reset_event(): ''' Helper method to create a 'flumotion-reset' event ''' return Gst.event_new_custom(Gst.EVENT_CUSTOM_DOWNSTREAM, Gst....