Lines Matching full:sink
53 GST_ELEMENT_DETAILS("Bluetooth A2DP sink",
54 "Sink/Audio",
59 GST_STATIC_PAD_TEMPLATE("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
169 if (self->sink != NULL)
170 gst_avdtp_sink_set_device(self->sink,
181 if (self->sink != NULL)
182 g_object_set(G_OBJECT(self->sink), "auto-connect",
200 if (self->sink != NULL) {
201 device = gst_avdtp_sink_get_device(self->sink);
207 if (self->sink != NULL)
208 g_object_get(G_OBJECT(self->sink), "auto-connect",
224 capsfilter_pad = gst_element_get_static_pad(self->capsfilter, "sink");
227 self->ghostpad = GST_GHOST_PAD(gst_ghost_pad_new("sink",
277 self->sink = GST_AVDTP_SINK(gst_element_factory_make(
279 if (self->sink == NULL) {
285 gst_avdtp_sink_set_device(self->sink,
288 g_object_set(G_OBJECT(self->sink), "auto-connect",
291 ret = gst_element_set_state(GST_ELEMENT(self->sink),
320 GST_ELEMENT(self->sink)))
323 } else if (self->sink != NULL) {
324 gst_element_set_state(GST_ELEMENT(self->sink),
326 g_object_unref(G_OBJECT(self->sink));
329 self->sink = NULL;
369 "A2DP sink element");
374 return gst_avdtp_sink_get_device_caps(self->sink);
383 if (self->sink == NULL) {
403 GstElement *sink;
405 /* check if we don't need a new sink */
409 if (self->sink == NULL)
410 sink = gst_element_factory_make("avdtpsink", "avdtpsink");
412 sink = GST_ELEMENT(self->sink);
414 if (sink == NULL) {
419 if (!gst_bin_add(GST_BIN(self), sink)) {
425 if (gst_element_set_state(sink, GST_STATE_READY) ==
431 if (!gst_element_link(GST_ELEMENT(self->rtp), sink)) {
437 self->sink = GST_AVDTP_SINK(sink);
439 g_object_set(G_OBJECT(self->sink), "device", self->device, NULL);
441 gst_element_set_state(sink, GST_STATE_PAUSED);
446 gst_element_set_state(sink, GST_STATE_NULL);
447 gst_bin_remove(GST_BIN(self), sink);
451 if (sink != NULL)
452 g_object_unref(G_OBJECT(sink));
543 gst_avdtp_sink_set_crc(self->sink, crc);
547 gst_avdtp_sink_set_channel_mode(self->sink, mode);
555 if (!gst_avdtp_sink_set_device_caps(self->sink, caps))
559 gst_avdtp_sink_get_link_mtu(self->sink), NULL);
584 /* used for catching newsegment events while we don't have a sink, for
585 * later forwarding it to the sink */
593 parent = gst_element_get_parent(GST_ELEMENT(self->sink));
673 self->sink = NULL;