mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
add a warning
Original commit message from CVS: add a warning
This commit is contained in:
parent
7193017158
commit
fe3a554166
2 changed files with 15 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-03-08 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* sys/oss/gstosssink.c: (gst_osssink_get_delay),
|
||||
(gst_osssink_get_time):
|
||||
add a warning, IMO this won't get triggered anymore, remove later
|
||||
|
||||
2004-03-07 David Schleef <ds@schleef.org>
|
||||
|
||||
* gst/qtdemux/qtdemux.c: (qtdemux_video_caps): Added Cinepak
|
||||
|
|
|
@ -296,12 +296,17 @@ gst_osssink_get_time (GstClock *clock, gpointer data)
|
|||
|
||||
delay = gst_osssink_get_delay (osssink);
|
||||
|
||||
/* sometimes delay is bigger than the number of bytes sent to the device,
|
||||
* which screws up this calculation, we assume that everything is still
|
||||
* in the device then */
|
||||
/* sometimes delay is bigger than the number of bytes sent to the device,
|
||||
* which screws up this calculation, we assume that everything is still
|
||||
* in the device then
|
||||
* thomas: with proper handling of the return value, this doesn't seem to
|
||||
* happen anymore, so remove the second code path after april 2004 */
|
||||
if (delay < 0) {
|
||||
delay = 0;
|
||||
} else if (((guint64) delay) > osssink->handled) {
|
||||
} else if ((guint64) delay > osssink->handled) {
|
||||
g_warning ("Delay %d > osssink->handled %" G_GUINT64_FORMAT
|
||||
", setting to osssink->handled",
|
||||
delay, osssink->handled);
|
||||
delay = osssink->handled;
|
||||
}
|
||||
res = (osssink->handled - delay) * GST_SECOND / GST_OSSELEMENT (osssink)->bps;
|
||||
|
|
Loading…
Reference in a new issue