summaryrefslogtreecommitdiffstats
path: root/ext/jack/gstjackbin.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2002-06-12 03:32:02 +0000
committerAndy Wingo <wingo@pobox.com>2002-06-12 03:32:02 +0000
commitdb515dbd19baf2d2d1fe4b653f4de5f728c274d1 (patch)
tree881cd51e04f686bfc371870f72db860c72c3657f /ext/jack/gstjackbin.c
parent9f08fd8e6a90f42cca922d6b92412fbbed4cc597 (diff)
downloadgst-plugins-bad-db515dbd19baf2d2d1fe4b653f4de5f728c274d1.tar.gz
gst-plugins-bad-db515dbd19baf2d2d1fe4b653f4de5f728c274d1.tar.bz2
gst-plugins-bad-db515dbd19baf2d2d1fe4b653f4de5f728c274d1.zip
working jack elements (fixed a problem in upstream jack) random other fixen...
Original commit message from CVS: * working jack elements (fixed a problem in upstream jack) * random other fixen...
Diffstat (limited to 'ext/jack/gstjackbin.c')
-rw-r--r--ext/jack/gstjackbin.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/ext/jack/gstjackbin.c b/ext/jack/gstjackbin.c
index 49ecca70..5aee2924 100644
--- a/ext/jack/gstjackbin.c
+++ b/ext/jack/gstjackbin.c
@@ -102,7 +102,7 @@ gst_jack_bin_change_state (GstElement *element)
switch (GST_STATE_PENDING (element)) {
case GST_STATE_NULL:
- g_message ("jack: NULL state");
+ g_message ("jackbin: NULL state");
if (this->client) {
g_message ("jack: closing client");
jack_client_close (this->client);
@@ -113,7 +113,7 @@ gst_jack_bin_change_state (GstElement *element)
break;
case GST_STATE_READY:
- g_message ("jack: READY");
+ g_message ("jackbin: READY");
if (!this->client) {
if (!(this->client = jack_client_new ("gst-jack"))) {
g_warning ("jack server not running?");
@@ -154,24 +154,25 @@ gst_jack_bin_change_state (GstElement *element)
break;
case GST_STATE_PAUSED:
- g_message ("jack: PAUSED");
+ g_message ("jackbin: PAUSED");
if (!GST_FLAG_IS_SET (GST_OBJECT (this), GST_JACK_OPEN)) {
l = this->src_pads;
while (l) {
pad = GST_JACK_PAD (l);
g_message ("jack: registering pad %s:%s", pad->name, pad->peer_name);
- pad->port = jack_port_register (this->client, pad->name, JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput, 0);
+ pad->port = jack_port_register (this->client, pad->name, JACK_DEFAULT_AUDIO_TYPE, JackPortIsInput|JackPortIsTerminal, 0);
l = g_list_next (l);
}
l = this->sink_pads;
while (l) {
pad = GST_JACK_PAD (l);
g_message ("jack: registering pad %s:%s", pad->name, pad->peer_name);
- pad->port = jack_port_register (this->client, pad->name, JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0);
+ pad->port = jack_port_register (this->client, pad->name, JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput|JackPortIsTerminal, 0);
l = g_list_next (l);
}
+ /* must activate before connecting */
if (!GST_FLAG_IS_SET (GST_OBJECT (this), GST_JACK_ACTIVE)) {
g_message ("jack: activating client");
jack_activate (this->client);
@@ -201,7 +202,7 @@ gst_jack_bin_change_state (GstElement *element)
l = g_list_next (l);
}
- g_message ("jack: setting OPEN flag");
+ g_message ("jackbin: setting OPEN flag");
GST_FLAG_SET (GST_OBJECT (this), GST_JACK_OPEN);
} else {
g_cond_wait (this->cond, this->lock);