diff options
author | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2014-05-04 00:40:03 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2014-05-04 00:40:03 -0400 |
commit | 4b1f0b5fa6bc9f435453839d4d58ca5d8a6c863e (patch) | |
tree | 9079f92f63db52fff4f97e9f7671e106f8e07759 | |
parent | 148e8f2f815c5060e35840de00daa8eba5b58897 (diff) | |
download | farstream-4b1f0b5fa6bc9f435453839d4d58ca5d8a6c863e.tar.gz |
multicast: Assert that udpsock is valid if there are ttls left
If the sock is not valid, that we should be the only user and the ttl
should have been flushed.
-rw-r--r-- | transmitters/multicast/fs-multicast-transmitter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/transmitters/multicast/fs-multicast-transmitter.c b/transmitters/multicast/fs-multicast-transmitter.c index dc1f2c57..93beb702 100644 --- a/transmitters/multicast/fs-multicast-transmitter.c +++ b/transmitters/multicast/fs-multicast-transmitter.c @@ -1055,6 +1055,8 @@ fs_multicast_transmitter_put_udpsock (FsMulticastTransmitter *trans, if (udpsock->ttls->len > 0) { + g_assert (udpsock->fd >= 0); + /* If we were the max, check if there is a new max */ if (udpsock->current_ttl == ttl && ttl > 1) { |