shout2: Convert delay correctly
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 2 Dec 2009 16:33:20 +0000 (13:33 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 2 Dec 2009 16:33:20 +0000 (13:33 -0300)
Use GST_MSECOND to convert delay in msecs to nanosecs

Fixes #603547

ext/shout2/gstshout2.c

index 61d25ba..3385db3 100644 (file)
@@ -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);