ext/alsa/gstalsasink.c: This seems to be antique leftover. It needs to pass error checking.

Original commit message from CVS:
* ext/alsa/gstalsasink.c: (gst_alsa_sink_get_time):
This seems to be antique leftover. It needs to pass error
checking.
* ext/sdl/sdlvideosink.c: (gst_sdlvideosink_init),
(gst_sdlvideosink_deinitsdl), (gst_sdlvideosink_initsdl),
(gst_sdlvideosink_destroy), (gst_sdlvideosink_create),
(gst_sdlvideosink_sinkconnect), (gst_sdlvideosink_chain):
Fix GstXOverlay implementation (#151059).
This commit is contained in:
Ronald S. Bultje 2004-11-10 22:01:19 +00:00
parent 767cd0d102
commit f04b458d87
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,14 @@
2004-11-10 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/alsa/gstalsasink.c: (gst_alsa_sink_get_time):
This seems to be antique leftover. It needs to pass error
checking.
* ext/sdl/sdlvideosink.c: (gst_sdlvideosink_init),
(gst_sdlvideosink_deinitsdl), (gst_sdlvideosink_initsdl),
(gst_sdlvideosink_destroy), (gst_sdlvideosink_create),
(gst_sdlvideosink_sinkconnect), (gst_sdlvideosink_chain):
Fix GstXOverlay implementation (#151059).
2004-11-10 Ronald S. Bultje <rbultje@ronald.bitfreak.net> 2004-11-10 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/playback/gstplaybasebin.c: (gst_play_base_bin_change_state): * gst/playback/gstplaybasebin.c: (gst_play_base_bin_change_state):

View file

@ -576,7 +576,7 @@ gst_alsa_sink_get_time (GstAlsa * this)
if (!GST_FLAG_IS_SET (this, GST_ALSA_RUNNING)) { if (!GST_FLAG_IS_SET (this, GST_ALSA_RUNNING)) {
delay = 0; delay = 0;
} else if (snd_pcm_delay (this->handle, &delay) != 0) { } else if (snd_pcm_delay (this->handle, &delay) != 0) {
return this->played / this->format->rate; delay = 0;
} }
if (this->played <= delay) { if (this->played <= delay) {
return 0; return 0;