summaryrefslogtreecommitdiff
blob: bd16211069961699c172d8ec9c2cab9f9b72011e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- src/endpoint.cpp.orig	2004-11-25 21:12:40.000000000 +0200
+++ src/endpoint.cpp	2004-12-23 17:22:40.000000000 +0200
@@ -2315,8 +2315,6 @@
                               BOOL set, 
 			      unsigned int &vol) 
 {
-  H323Connection *con = NULL;
-
 #ifdef HAS_IXJ
   GMLid *l = NULL;
 #endif
@@ -2326,10 +2324,6 @@
 
   call_token = GetCurrentCallToken ();
 
-  con = FindConnectionWithLock (call_token);
-
-  if (con) {
-
 #ifdef HAS_IXJ
     if (set) {
 
@@ -2339,8 +2333,6 @@
         l->SetVolume (is_encoding, vol);
         l->Unlock ();
 
-        con->Unlock ();
-
         return TRUE; /* Ignore the sound channel if a LID is used. Hopefully,
                         OpenH323 will be fixed soon */
       }
@@ -2365,9 +2357,6 @@
       }
     }
 
-    con->Unlock ();
-  }
-
   return err;
 }