Lines Matching refs:tdata
174 SinkPlayReadyTData *tdata = user_data; in state_timer_cb() local
175 GstState nxt_st = tdata->rem_st_changes % 2 == 1 ? in state_timer_cb()
176 tdata->reuse_state : GST_STATE_PLAYING; in state_timer_cb()
178 ASSERT_SET_STATE (tdata->pipe, nxt_st, GST_STATE_CHANGE_SUCCESS); in state_timer_cb()
179 tdata->rem_st_changes--; in state_timer_cb()
181 if (tdata->rem_st_changes == 0) { in state_timer_cb()
182 g_main_loop_quit (tdata->loop); in state_timer_cb()
193 SinkPlayReadyTData tdata; in wasapisink_reuse() local
196 tdata.pipe = gst_parse_launch ("audiotestsrc ! wasapisink async=false", NULL); in wasapisink_reuse()
197 fail_unless (tdata.pipe != NULL); in wasapisink_reuse()
198 bus = gst_element_get_bus (tdata.pipe); in wasapisink_reuse()
202 tdata.reuse_state = reuse_state; in wasapisink_reuse()
204 ASSERT_SET_STATE (tdata.pipe, GST_STATE_PLAYING, GST_STATE_CHANGE_SUCCESS); in wasapisink_reuse()
205 tdata.rem_st_changes = 3; /* -> READY -> PLAYING -> QUIT */ in wasapisink_reuse()
206 g_timeout_add_seconds (1, state_timer_cb, &tdata); in wasapisink_reuse()
208 tdata.loop = g_main_loop_new (NULL, FALSE); in wasapisink_reuse()
209 g_main_loop_run (tdata.loop); in wasapisink_reuse()
211 g_main_loop_unref (tdata.loop); in wasapisink_reuse()
214 gst_object_unref (tdata.pipe); in wasapisink_reuse()