• Home
  • Raw
  • Download

Lines Matching refs:basesink

139 static gboolean gst_audio_base_sink_activate_pull (GstBaseSink * basesink,
279 GstBaseSink *basesink = GST_BASE_SINK_CAST (audiobasesink); in gst_audio_base_sink_init() local
298 basesink->can_activate_push = TRUE; in gst_audio_base_sink_init()
299 basesink->can_activate_pull = DEFAULT_CAN_ACTIVATE_PULL; in gst_audio_base_sink_init()
301 gst_base_sink_set_last_sample_enabled (basesink, FALSE); in gst_audio_base_sink_init()
303 GST_OBJECT_FLAG_SET (basesink, GST_ELEMENT_FLAG_PROVIDE_CLOCK); in gst_audio_base_sink_init()
305 GST_OBJECT_FLAG_UNSET (basesink, GST_ELEMENT_FLAG_PROVIDE_CLOCK); in gst_audio_base_sink_init()
383 GstAudioBaseSink *basesink; in gst_audio_base_sink_query_pad() local
385 basesink = GST_AUDIO_BASE_SINK (bsink); in gst_audio_base_sink_query_pad()
393 GST_LOG_OBJECT (basesink, "query convert"); in gst_audio_base_sink_query_pad()
395 if (basesink->ringbuffer) { in gst_audio_base_sink_query_pad()
398 gst_audio_ring_buffer_convert (basesink->ringbuffer, src_fmt, in gst_audio_base_sink_query_pad()
417 GstAudioBaseSink *basesink; in gst_audio_base_sink_query() local
419 basesink = GST_AUDIO_BASE_SINK (element); in gst_audio_base_sink_query()
427 GST_DEBUG_OBJECT (basesink, "latency query"); in gst_audio_base_sink_query()
431 gst_base_sink_query_latency (GST_BASE_SINK_CAST (basesink), &live, in gst_audio_base_sink_query()
439 GST_OBJECT_LOCK (basesink); in gst_audio_base_sink_query()
440 if (!basesink->ringbuffer || !basesink->ringbuffer->spec.info.rate) { in gst_audio_base_sink_query()
441 GST_OBJECT_UNLOCK (basesink); in gst_audio_base_sink_query()
443 GST_DEBUG_OBJECT (basesink, in gst_audio_base_sink_query()
448 spec = &basesink->ringbuffer->spec; in gst_audio_base_sink_query()
450 basesink->priv->us_latency = min_l; in gst_audio_base_sink_query()
455 GST_OBJECT_UNLOCK (basesink); in gst_audio_base_sink_query()
463 GST_DEBUG_OBJECT (basesink, in gst_audio_base_sink_query()
467 GST_DEBUG_OBJECT (basesink, in gst_audio_base_sink_query()
472 GST_DEBUG_OBJECT (basesink, in gst_audio_base_sink_query()
486 GST_LOG_OBJECT (basesink, "query convert"); in gst_audio_base_sink_query()
488 if (basesink->ringbuffer) { in gst_audio_base_sink_query()
491 gst_audio_ring_buffer_convert (basesink->ringbuffer, src_fmt, in gst_audio_base_sink_query()
2281 GstBaseSink *basesink; in gst_audio_base_sink_callback() local
2287 basesink = GST_BASE_SINK (user_data); in gst_audio_base_sink_callback()
2290 GST_PAD_STREAM_LOCK (basesink->sinkpad); in gst_audio_base_sink_callback()
2294 GST_LOG_OBJECT (basesink, "pulling %u bytes offset %" G_GUINT64_FORMAT in gst_audio_base_sink_callback()
2295 " to fill audio buffer", len, basesink->offset); in gst_audio_base_sink_callback()
2297 gst_pad_pull_range (basesink->sinkpad, basesink->segment.position, len, in gst_audio_base_sink_callback()
2307 GST_BASE_SINK_PREROLL_LOCK (basesink); in gst_audio_base_sink_callback()
2308 if (basesink->flushing) in gst_audio_base_sink_callback()
2312 ret = gst_base_sink_do_preroll (basesink, GST_MINI_OBJECT_CAST (buf)); in gst_audio_base_sink_callback()
2319 GST_INFO_OBJECT (basesink, in gst_audio_base_sink_callback()
2325 basesink->segment.position += len; in gst_audio_base_sink_callback()
2328 GST_BASE_SINK_PREROLL_UNLOCK (basesink); in gst_audio_base_sink_callback()
2330 GST_PAD_STREAM_UNLOCK (basesink->sinkpad); in gst_audio_base_sink_callback()
2336 GST_WARNING_OBJECT (basesink, "Got flow '%s' but can't return it: %d", in gst_audio_base_sink_callback()
2339 GST_PAD_STREAM_UNLOCK (basesink->sinkpad); in gst_audio_base_sink_callback()
2352 GST_PAD_STREAM_UNLOCK (basesink->sinkpad); in gst_audio_base_sink_callback()
2359 GST_BASE_SINK_PREROLL_UNLOCK (basesink); in gst_audio_base_sink_callback()
2360 GST_PAD_STREAM_UNLOCK (basesink->sinkpad); in gst_audio_base_sink_callback()
2367 GST_BASE_SINK_PREROLL_UNLOCK (basesink); in gst_audio_base_sink_callback()
2368 GST_PAD_STREAM_UNLOCK (basesink->sinkpad); in gst_audio_base_sink_callback()
2374 gst_audio_base_sink_activate_pull (GstBaseSink * basesink, gboolean active) in gst_audio_base_sink_activate_pull() argument
2377 GstAudioBaseSink *sink = GST_AUDIO_BASE_SINK (basesink); in gst_audio_base_sink_activate_pull()
2380 GST_DEBUG_OBJECT (basesink, "activating pull"); in gst_audio_base_sink_activate_pull()
2387 GST_DEBUG_OBJECT (basesink, "deactivating pull"); in gst_audio_base_sink_activate_pull()