g_set_error (error, GST_WEBRTC_BIN_ERROR,
GST_WEBRTC_BIN_ERROR_DATA_CHANNEL_FAILURE,
"Could not send ack packet");
+ return ret;
}
+
return ret;
} else {
g_set_error (error, GST_WEBRTC_BIN_ERROR,
CHANNEL_LOCK (channel);
prev_amount = channel->buffered_amount;
channel->buffered_amount -= size;
- if (prev_amount > channel->buffered_amount_low_threshold &&
+ GST_TRACE_OBJECT (channel, "checking low-threshold: prev %"
+ G_GUINT64_FORMAT " low-threshold %" G_GUINT64_FORMAT " buffered %"
+ G_GUINT64_FORMAT, prev_amount, channel->buffered_amount_low_threshold,
+ channel->buffered_amount);
+ if (prev_amount >= channel->buffered_amount_low_threshold &&
channel->buffered_amount < channel->buffered_amount_low_threshold) {
_channel_enqueue_task (channel, (ChannelTask) _emit_low_threshold,
NULL, NULL);
g_signal_connect (our, "on-error", G_CALLBACK (on_channel_error_not_reached),
NULL);
- g_signal_emit_by_name (our, "send-string", "DATA");
+ g_signal_emit_by_name (our, "send-string", "A");
}
GST_START_TEST (test_data_channel_low_threshold)