summaryrefslogtreecommitdiffstats
path: root/ext/sdl
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2001-12-28 20:24:41 +0000
committerWim Taymans <wim.taymans@gmail.com>2001-12-28 20:24:41 +0000
commit42cc21cd97016d4aa8ecc6d8c80b0dbd8780f975 (patch)
treed1c12c13d40db07bdfffeb23cbb563bbbbc5ce83 /ext/sdl
parentd0e007a68085e63f509857e21cef8a7bd8477ce8 (diff)
downloadgst-plugins-bad-42cc21cd97016d4aa8ecc6d8c80b0dbd8780f975.tar.gz
gst-plugins-bad-42cc21cd97016d4aa8ecc6d8c80b0dbd8780f975.tar.bz2
gst-plugins-bad-42cc21cd97016d4aa8ecc6d8c80b0dbd8780f975.zip
Fixed some plugins
Original commit message from CVS: Fixed some plugins
Diffstat (limited to 'ext/sdl')
-rw-r--r--ext/sdl/sdlvideosink.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c
index 10e1ca7d..bbc2f322 100644
--- a/ext/sdl/sdlvideosink.c
+++ b/ext/sdl/sdlvideosink.c
@@ -239,19 +239,17 @@ gst_sdlvideosink_chain (GstPad *pad, GstBuffer *buf)
sdlvideosink = GST_SDLVIDEOSINK (gst_pad_get_parent (pad));
- if (!GST_BUFFER_FLAG_IS_SET(buf, GST_BUFFER_FLUSH)) {
- GST_DEBUG (0,"videosink: clock wait: %llu\n", GST_BUFFER_TIMESTAMP(buf));
+ GST_DEBUG (0,"videosink: clock wait: %llu\n", GST_BUFFER_TIMESTAMP(buf));
- jitter = gst_clock_current_diff(sdlvideosink->clock, GST_BUFFER_TIMESTAMP (buf));
+ jitter = gst_clock_current_diff(sdlvideosink->clock, GST_BUFFER_TIMESTAMP (buf));
- if (jitter > 500000 || jitter < -500000)
- {
- GST_DEBUG (0, "jitter: %lld\n", jitter);
- gst_clock_set (sdlvideosink->clock, GST_BUFFER_TIMESTAMP (buf));
- }
- else {
- gst_clock_wait(sdlvideosink->clock, GST_BUFFER_TIMESTAMP(buf), GST_OBJECT(sdlvideosink));
- }
+ if (jitter > 500000 || jitter < -500000)
+ {
+ GST_DEBUG (0, "jitter: %lld\n", jitter);
+ gst_clock_set (sdlvideosink->clock, GST_BUFFER_TIMESTAMP (buf));
+ }
+ else {
+ gst_clock_wait(sdlvideosink->clock, GST_BUFFER_TIMESTAMP(buf), GST_OBJECT(sdlvideosink));
}
/* Lock SDL/yuv-overlay */