shout2: Convert delay correctly

Use GST_MSECOND to convert delay in msecs to nanosecs

Fixes #603547
This commit is contained in:
Thiago Santos 2009-12-02 13:33:20 -03:00
parent 384c4a2495
commit 8cb3452ac4

View 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);