mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 22:46:24 +00:00
sys/oss/gstosselement.c: Add a check for a driver bug on FreeBSD. (bug #140565)
Original commit message from CVS: * sys/oss/gstosselement.c: (gst_osselement_rate_probe_check): Add a check for a driver bug on FreeBSD. (bug #140565)
This commit is contained in:
parent
0a4089343d
commit
5545506182
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-04-29 David Schleef <ds@schleef.org>
|
||||
|
||||
* sys/oss/gstosselement.c: (gst_osselement_rate_probe_check):
|
||||
Add a check for a driver bug on FreeBSD. (bug #140565)
|
||||
|
||||
2004-04-29 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* ext/jpeg/gstjpegdec.c: (gst_jpegdec_get_type):
|
||||
|
|
|
@ -1168,6 +1168,17 @@ gst_osselement_rate_probe_check (GstOssProbe * probe)
|
|||
probe->min = gst_osselement_rate_check_rate (probe, 1000);
|
||||
n_checks++;
|
||||
probe->max = gst_osselement_rate_check_rate (probe, 100000);
|
||||
/* a little bug workaround */
|
||||
{
|
||||
int max;
|
||||
|
||||
max = gst_osselement_rate_check_rate (probe, 48000);
|
||||
if (max > probe->max) {
|
||||
GST_ERROR
|
||||
("Driver bug recognized (driver does not round rates correctly). Please file a bug report.");
|
||||
probe->max = max;
|
||||
}
|
||||
}
|
||||
n_checks++;
|
||||
if (probe->min == -1 || probe->max == -1) {
|
||||
GST_DEBUG ("unexpected check_rate error");
|
||||
|
|
Loading…
Reference in a new issue