ext/alsa/gstalsa.c: Reset variables on READY.

Original commit message from CVS:
* ext/alsa/gstalsa.c: (gst_alsa_change_state):
Reset variables on READY.
* gst/matroska/matroska-mux.c: (gst_matroska_mux_request_new_pad),
(gst_matroska_mux_loop):
Require data before writing header.
This commit is contained in:
Ronald S. Bultje 2005-01-09 10:30:58 +00:00
parent c9df7333fb
commit 71c41d27f8
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2005-01-09 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/alsa/gstalsa.c: (gst_alsa_change_state):
Reset variables on READY.
* gst/matroska/matroska-mux.c: (gst_matroska_mux_request_new_pad),
(gst_matroska_mux_loop):
Require data before writing header.
2005-01-09 Francis Labonte <francis_labonte@hotmail.com>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

View file

@ -1190,6 +1190,8 @@ gst_alsa_change_state (GstElement * element)
gst_alsa_stop_audio (this);
g_free (this->format);
this->format = NULL;
this->played = 0;
this->captured = 0;
break;
case GST_STATE_READY_TO_NULL:
if (GST_FLAG_IS_SET (element, GST_ALSA_OPEN))