summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2009-12-02 13:33:20 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2009-12-02 13:33:20 -0300
commit8cb3452ac4f781576914d43b3576e4762f56dd47 (patch)
tree1ff64caa3d5e6cd403adafcc6508a3b3ce61b431
parent384c4a2495e7b8c77eaca38b552054b3a70154c6 (diff)
shout2: Convert delay correctly
Use GST_MSECOND to convert delay in msecs to nanosecs Fixes #603547
-rw-r--r--ext/shout2/gstshout2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c
index 61d25ba16..3385db31d 100644
--- a/ext/shout2/gstshout2.c
+++ b/ext/shout2/gstshout2.c
@@ -640,7 +640,7 @@ gst_shout2send_render (GstBaseSink * basesink, GstBuffer * buf)
delay = shout_delay (sink->conn);
GST_LOG_OBJECT (sink, "waiting %d msec", delay);
- if (gst_poll_wait (sink->timer, 1000 * delay) == -1) {
+ if (gst_poll_wait (sink->timer, GST_MSECOND * delay) == -1) {
GST_LOG_OBJECT (sink, "unlocked");
fret = gst_base_sink_wait_preroll (basesink);