]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
If the rsession is null, then don't try to unlock it, since that'll just result in...
authorWilliam King <william.king@quentustech.com>
Tue, 23 Apr 2013 17:22:49 +0000 (10:22 -0700)
committerWilliam King <william.king@quentustech.com>
Wed, 24 Apr 2013 00:48:07 +0000 (17:48 -0700)
src/mod/endpoints/mod_rtmp/mod_rtmp.c

index d68278c5dbd0eb4d9ee3c8c5b9860c833964a54b..36c295a27499c9f232c0e9c062cab2c5d1273f76 100644 (file)
@@ -462,7 +462,7 @@ switch_status_t rtmp_write_frame(switch_core_session_t *session, switch_frame_t
        rsession = tech_pvt->rtmp_session;
 
        if ( rsession == NULL ) {
-               goto error;
+               goto error_null;
        }
 
        switch_thread_rwlock_wrlock(rsession->rwlock);
@@ -514,7 +514,9 @@ switch_status_t rtmp_write_frame(switch_core_session_t *session, switch_frame_t
 
  error:
        switch_thread_rwlock_unlock(rsession->rwlock);
-               return SWITCH_STATUS_FALSE;
+       
+ error_null:
+       return SWITCH_STATUS_FALSE;
 }