shout2: Use a non-timer GstPoll
authorSebastian Dröge <sebastian@centricular.com>
Wed, 29 Jun 2016 21:31:20 +0000 (23:31 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 29 Jun 2016 21:31:20 +0000 (23:31 +0200)
Otherwise set_flushing() will have undefined semantics and nowadays causes a
g_critical() to warn about that.

ext/shout2/gstshout2.c

index 3952e77..ca58e34 100644 (file)
@@ -240,7 +240,7 @@ gst_shout2send_init (GstShout2send * shout2send)
 {
   gst_base_sink_set_sync (GST_BASE_SINK (shout2send), FALSE);
 
-  shout2send->timer = gst_poll_new_timer ();
+  shout2send->timer = gst_poll_new (TRUE);
 
   shout2send->ip = g_strdup (DEFAULT_IP);
   shout2send->port = DEFAULT_PORT;