]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
set marker and ts, some endpoints depending on the marker bit to render correct video
authorSeven Du <dujinfang@gmail.com>
Sun, 15 Jul 2012 10:48:51 +0000 (18:48 +0800)
committerSeven Du <dujinfang@gmail.com>
Sun, 15 Jul 2012 10:48:51 +0000 (18:48 +0800)
src/mod/applications/mod_fsv/mod_fsv.c

index 5c52a352dfc479bd803ee8e7de1382ea389d9db5..7a798ca1fa37e8813851038e080f6777163c86f9 100644 (file)
@@ -411,6 +411,8 @@ SWITCH_STANDARD_APP(play_fsv_function)
                        if (switch_channel_test_flag(channel, CF_VIDEO)) {
                                switch_byte_t *data = (switch_byte_t *) vid_frame.packet;
 
+                               vid_frame.m = hdr->m;
+                               vid_frame.timestamp = ts;
                                vid_frame.data = data + 12;
                                vid_frame.datalen = vid_frame.packetlen - 12;
                                switch_core_session_write_video_frame(session, &vid_frame, SWITCH_IO_FLAG_NONE, 0);