FS-7501: add mutex to vid buf and fix regression from last regression fix

This commit is contained in:
Anthony Minessale authored and Michael Jerris committed 2015-05-28 12:47:14 -05:00
1 parent 84ca513353
commit dc7608fb9e
2 files changed
+14 -6

No files matched your search

+1 -1
View File
@@ -4772,7 +4772,7 @@ static void *SWITCH_THREAD_FUNC video_helper_thread(switch_thread_t *thread, voi
vloops++;
if (!buf && switch_channel_test_flag(channel, CF_VIDEO_DECODED_READ)) {
if (!buf) {
int buflen = SWITCH_RECOMMENDED_BUFFER_SIZE * 4;
buf = switch_core_session_alloc(session, buflen);
fr.packet = buf;