ext/alsa/gstalsasink.c: Also allow unsigned int.

Original commit message from CVS:
* ext/alsa/gstalsasink.c:
Also allow unsigned int.

* gst-libs/gst/audio/gstbaseaudiosrc.c:
(gst_base_audio_src_create), (gst_base_audio_src_change_state):
Small cleanup
This commit is contained in:
Wim Taymans 2005-10-10 17:04:24 +00:00
parent 156264e9c0
commit 81a09fc472
3 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,12 @@
2005-10-10 Wim Taymans <wim@fluendo.com>
* ext/alsa/gstalsasink.c:
Also allow unsigned int.
* gst-libs/gst/audio/gstbaseaudiosrc.c:
(gst_base_audio_src_create), (gst_base_audio_src_change_state):
Small cleanup
2005-10-10 Wim Taymans <wim@fluendo.com>
* check/pipelines/simple_launch_lines.c: (run_pipeline):

View file

@ -84,8 +84,7 @@ static GstStaticPadTemplate alsasink_sink_factory =
#else
"endianness = (int) { BIG_ENDIAN, LITTLE_ENDIAN }, "
#endif
//"signed = (boolean) { TRUE, FALSE }, "
"signed = (boolean) TRUE, "
"signed = (boolean) { TRUE, FALSE }, "
"width = (int) 16, "
"depth = (int) 16, "
"rate = (int) [ 1, MAX ], " "channels = (int) [ 1, 2 ]; "

View file

@ -413,7 +413,7 @@ gst_base_audio_src_change_state (GstElement * element,
break;
case GST_STATE_CHANGE_READY_TO_NULL:
gst_ring_buffer_close_device (src->ringbuffer);
gst_object_unref (GST_OBJECT (src->ringbuffer));
gst_object_unref (src->ringbuffer);
src->ringbuffer = NULL;
break;
default: