Skip to content

Commit

Permalink
Revert libnice to version 0.1.4 temporarily (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored Apr 18, 2017
1 parent 9925c65 commit 69e2630
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
8 changes: 1 addition & 7 deletions erizo/src/erizo/lib/LibNiceInterfaceImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ namespace erizo {
}
int LibNiceInterfaceImpl::NiceAgentSend(NiceAgent* agent, unsigned int stream_id, unsigned int component_id,
unsigned int len, const char* buf) {
GError *error = NULL;
GOutputVector vec[1] = {
{ buf, len }
};
NiceOutputMessage message = {vec, G_N_ELEMENTS(vec)};

return nice_agent_send_messages_nonblocking(agent, stream_id, component_id, &message, 1, NULL, &error);
return nice_agent_send(agent, stream_id, component_id, len, buf);
}

} // namespace erizo
9 changes: 5 additions & 4 deletions scripts/installUbuntuDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,11 @@ install_openssl(){
install_libnice(){
if [ -d $LIB_DIR ]; then
cd $LIB_DIR
if [ ! -f ./libnice-0.1.7.tar.gz ]; then
curl -O https://nice.freedesktop.org/releases/libnice-0.1.7.tar.gz
tar -zxvf libnice-0.1.7.tar.gz
cd libnice-0.1.7
if [ ! -f ./libnice-0.1.4.tar.gz ]; then
curl -O https://nice.freedesktop.org/releases/libnice-0.1.4.tar.gz
tar -zxvf libnice-0.1.4.tar.gz
cd libnice-0.1.4
patch -R ./agent/conncheck.c < $PATHNAME/libnice-014.patch0
./configure --prefix=$PREFIX_DIR
make -s V=0
make install
Expand Down
10 changes: 10 additions & 0 deletions scripts/libnice-014.patch0
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- conncheck.c 2014-01-20 08:51:48.535625502 +0100
+++ agent/conncheck.c 2013-01-09 22:35:25.000000000 +0100
@@ -2824,7 +2824,6 @@

if (agent->compatibility == NICE_COMPATIBILITY_GOOGLE ||
agent->compatibility == NICE_COMPATIBILITY_MSN ||
- agent->compatibility == NICE_COMPATIBILITY_RFC5245 ||
agent->compatibility == NICE_COMPATIBILITY_OC2007) {
/* We need to find which local candidate was used */
for (i = component->remote_candidates;

0 comments on commit 69e2630

Please sign in to comment.