shout2: Use a non-timer GstPoll

Otherwise set_flushing() will have undefined semantics and nowadays causes a
g_critical() to warn about that.
This commit is contained in:
Sebastian Dröge 2016-06-29 23:31:20 +02:00
parent 11c61f14bf
commit 9abc31df1a

View file

@ -240,7 +240,7 @@ gst_shout2send_init (GstShout2send * shout2send)
{ {
gst_base_sink_set_sync (GST_BASE_SINK (shout2send), FALSE); 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->ip = g_strdup (DEFAULT_IP);
shout2send->port = DEFAULT_PORT; shout2send->port = DEFAULT_PORT;