mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
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:
parent
7d4044aa46
commit
747e63f4e7
2 changed files with 14 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue