mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 09:38:17 +00:00
make oss warning more useful
Original commit message from CVS: make oss warning more useful
This commit is contained in:
parent
21c053773f
commit
c302fb7255
2 changed files with 8 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
|||
2004-01-12 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* sys/oss/gstossaudio.c: (plugin_init):
|
||||
* sys/oss/gstosselement.c: (gst_osselement_sync_parms):
|
||||
* sys/oss/gstosselement.h:
|
||||
make an oss debugging category
|
||||
make failure more descriptive
|
||||
|
||||
2004-01-11 David Schleef <ds@schleef.org>
|
||||
|
||||
|
|
|
@ -625,6 +625,11 @@ gst_osselement_sync_parms (GstOssElement *oss)
|
|||
target_channels != oss->channels ||
|
||||
target_rate != oss->rate)
|
||||
{
|
||||
if (target_channels != oss->channels)
|
||||
g_warning ("couldn't set the right number of channels, enjoy the tone difference");
|
||||
if (target_rate != oss->rate)
|
||||
g_warning ("couldn't set the right number of channels, enjoy the speed difference");
|
||||
if (target_format != oss->format)
|
||||
g_warning ("couldn't set requested OSS parameters, enjoy the noise :)");
|
||||
/* we could eventually return FALSE here, or just do some additional tests
|
||||
* to see that the frequencies don't differ too much etc.. */
|
||||
|
|
Loading…
Reference in a new issue