jack: deactivate the request_state code

When qjackctl is started, transport is stopped by default. This would be a
regression for gstreamer apps that before just started to play right away.
This commit is contained in:
Stefan Sauer 2012-01-10 23:02:45 +01:00
parent 7d4044aa46
commit 747e63f4e7
2 changed files with 14 additions and 2 deletions

View file

@ -191,12 +191,17 @@ jack_process_cb (jack_nframes_t nframes, void *arg)
guint8 *readptr;
gint i, j, flen, channels;
sample_t *data;
GstState state;
/*GstState state;*/
buf = GST_RING_BUFFER_CAST (arg);
sink = GST_JACK_AUDIO_SINK (GST_OBJECT_PARENT (buf));
/* handle transport state requisitions */
/*
FIXME: qjackctl's initial transport state is stopped
it can be started using jack_transport_start (jack_client_t *);
need to figure out what the policy here is
state = gst_jack_audio_client_get_transport_state (sink->client);
if ((state != GST_STATE_VOID_PENDING) && (GST_STATE (sink) != state)) {
GST_DEBUG_OBJECT (sink, "requesting state change: %s",
@ -204,6 +209,7 @@ jack_process_cb (jack_nframes_t nframes, void *arg)
gst_element_post_message (GST_ELEMENT (sink),
gst_message_new_request_state (GST_OBJECT (sink), state));
}
*/
channels = buf->spec.channels;

View file

@ -211,12 +211,17 @@ jack_process_cb (jack_nframes_t nframes, void *arg)
gint writeseg;
gint channels, i, j, flen;
sample_t *data;
GstState state;
/*GstState state;*/
buf = GST_RING_BUFFER_CAST (arg);
src = GST_JACK_AUDIO_SRC (GST_OBJECT_PARENT (buf));
/* handle transport state requisitions */
/*
FIXME: qjackctl's initial transport state is stopped
it can be started using jack_transport_start (jack_client_t *);
need to figure out what the policy here is
state = gst_jack_audio_client_get_transport_state (src->client);
if ((state != GST_STATE_VOID_PENDING) && (GST_STATE (src) != state)) {
GST_DEBUG_OBJECT (src, "requesting state change: %s",
@ -224,6 +229,7 @@ jack_process_cb (jack_nframes_t nframes, void *arg)
gst_element_post_message (GST_ELEMENT (src),
gst_message_new_request_state (GST_OBJECT (src), state));
}
*/
channels = buf->spec.channels;