[Freeswitch-svn] [commit] r7710 - freeswitch/trunk/src/mod/applications/mod_fsv
Freeswitch SVN
mikej at freeswitch.org
Wed Feb 20 15:07:20 EST 2008
Author: mikej
Date: Wed Feb 20 15:07:19 2008
New Revision: 7710
Modified:
freeswitch/trunk/src/mod/applications/mod_fsv/ (props changed)
freeswitch/trunk/src/mod/applications/mod_fsv/mod_fsv.c
Log:
tweak
Modified: freeswitch/trunk/src/mod/applications/mod_fsv/mod_fsv.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_fsv/mod_fsv.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_fsv/mod_fsv.c Wed Feb 20 15:07:19 2008
@@ -78,12 +78,12 @@
switch_mutex_lock(eh->mutex);
- if (write(eh->fd, &bytes, sizeof(bytes)) != sizeof(bytes)) {
+ if (write(eh->fd, &bytes, sizeof(bytes)) != (int)sizeof(bytes)) {
switch_mutex_unlock(eh->mutex);
break;
}
- if (write(eh->fd, read_frame->packet, read_frame->packetlen) != read_frame->packetlen) {
+ if (write(eh->fd, read_frame->packet, read_frame->packetlen) != (int)read_frame->packetlen) {
switch_mutex_unlock(eh->mutex);
break;
}
@@ -186,7 +186,7 @@
break;
}
- if (write(fd, read_frame->data, read_frame->datalen) != read_frame->datalen) {
+ if (write(fd, read_frame->data, read_frame->datalen) != (int)read_frame->datalen) {
if (mutex) {
switch_mutex_unlock(mutex);
}
@@ -303,16 +303,16 @@
}
if (bytes & VID_BIT) {
- switch_rtp_hdr_t *h = vid_frame.packet;
+ switch_rtp_hdr_t *hdr = vid_frame.packet;
bytes &= ~VID_BIT;
- if ((vid_frame.packetlen = read(fd, vid_frame.packet, bytes)) != bytes) {
+ if ((vid_frame.packetlen = read(fd, vid_frame.packet, bytes)) != (uint32_t)bytes) {
break;
}
- ts = ntohl(h->ts);
+ ts = ntohl(hdr->ts);
if (pt) {
- h->pt = pt;
+ hdr->pt = pt;
}
if (switch_channel_test_flag(channel, CF_VIDEO)) {
switch_core_session_write_video_frame(session, &vid_frame, -1, 0);
@@ -322,7 +322,7 @@
}
last = ts;
} else {
- if (bytes > write_frame.buflen) {
+ if (bytes > (int)write_frame.buflen) {
bytes = write_frame.buflen;
}
if ((write_frame.datalen = read(fd, write_frame.data, bytes)) <= 0) {
More information about the Freeswitch-svn
mailing list