diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-12 12:24:05 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2004-01-12 12:24:05 +0000 |
commit | c302fb72554c74aa5ac65e200647985acef586db (patch) | |
tree | dd15f286805dfe35677f7d99bdde53e99bcaa21f /sys | |
parent | 21c053773fada7c942607bdd78882ce37fc7481d (diff) |
make oss warning more useful
Original commit message from CVS:
make oss warning more useful
Diffstat (limited to 'sys')
-rw-r--r-- | sys/oss/gstosselement.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c index 48402cf5..4c1356ab 100644 --- a/sys/oss/gstosselement.c +++ b/sys/oss/gstosselement.c @@ -625,7 +625,12 @@ gst_osselement_sync_parms (GstOssElement *oss) target_channels != oss->channels || target_rate != oss->rate) { - g_warning ("couldn't set requested OSS parameters, enjoy the noise :)"); + 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.. */ } |