]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-300
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 16 Feb 2009 18:56:13 +0000 (18:56 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 16 Feb 2009 18:56:13 +0000 (18:56 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12062 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_io.c

index 50ba7cc4b6818a05238eb7983166ddd604c29074..eaf851264187d45a997f7715e1b91d3a7fe4c221 100644 (file)
@@ -800,7 +800,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess
        }
 
        if (session->write_codec) {
-               if (!ptime_mismatch && 
+               if (!ptime_mismatch && write_frame->codec && write_frame->codec->implementation &&
                        write_frame->codec->implementation->decoded_bytes_per_packet == session->write_impl.decoded_bytes_per_packet) {
                        perfect = TRUE;
                }