mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
ext/jack/: Query port latencies for sink/src delays.
Original commit message from CVS: * ext/jack/gstjackaudiosink.c: * ext/jack/gstjackaudiosrc.c: Query port latencies for sink/src delays. * ext/jack/gstjackbin.c: No printf please.
This commit is contained in:
parent
63969842df
commit
25d2d8f48a
4 changed files with 28 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
|||
2008-11-23 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* ext/jack/gstjackaudiosink.c:
|
||||
* ext/jack/gstjackaudiosrc.c:
|
||||
Query port latencies for sink/src delays.
|
||||
|
||||
* ext/jack/gstjackbin.c:
|
||||
No printf please.
|
||||
|
||||
2008-11-23 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||
|
||||
* gst/mxf/mxfdemux.c: (gst_mxf_demux_pull_klv_packet),
|
||||
|
|
|
@ -594,9 +594,17 @@ static guint
|
|||
gst_jack_ring_buffer_delay (GstRingBuffer * buf)
|
||||
{
|
||||
GstJackAudioSink *sink;
|
||||
guint res = 0;
|
||||
guint i, res = 0, latency;
|
||||
jack_client_t *client;
|
||||
|
||||
sink = GST_JACK_AUDIO_SINK (GST_OBJECT_PARENT (buf));
|
||||
client = gst_jack_audio_client_get_client (sink->client);
|
||||
|
||||
for (i = 0; i < sink->port_count; i++) {
|
||||
latency = jack_port_get_total_latency (client, sink->ports[i]);
|
||||
if (latency > res)
|
||||
res = latency;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (sink, "delay %u", res);
|
||||
|
||||
|
|
|
@ -601,9 +601,17 @@ static guint
|
|||
gst_jack_ring_buffer_delay (GstRingBuffer * buf)
|
||||
{
|
||||
GstJackAudioSrc *src;
|
||||
guint res = 0;
|
||||
guint i, res = 0, latency;
|
||||
jack_client_t *client;
|
||||
|
||||
src = GST_JACK_AUDIO_SRC (GST_OBJECT_PARENT (buf));
|
||||
client = gst_jack_audio_client_get_client (src->client);
|
||||
|
||||
for (i = 0; i < src->port_count; i++) {
|
||||
latency = jack_port_get_total_latency (client, src->ports[i]);
|
||||
if (latency > res)
|
||||
res = latency;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (src, "delay %u", res);
|
||||
|
||||
|
|
|
@ -337,7 +337,7 @@ static void
|
|||
shutdown (void *arg)
|
||||
{
|
||||
/* GstJackClient *client = (GstJackClient*) arg; */
|
||||
printf ("shutdown %p\n", arg);
|
||||
JACK_DEBUG ("shutdown %p\n", arg);
|
||||
/* gst_element_set_state (GST_ELEMENT (client->manager), GST_STATE_READY); */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue