00001 /* * 00002 * This file is part of libnemesi 00003 * 00004 * Copyright (C) 2007 by LScube team <team@streaming.polito.it> 00005 * See AUTHORS for more details 00006 * 00007 * libnemesi is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * libnemesi is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with libnemesi; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 * 00021 * */ 00022 00028 #include "rtcp.h" 00029 #include "comm.h" 00030 #include "rtspinternals.h" 00031 00040 int rtcp_parse_bye(rtp_ssrc * ssrc, rtcp_pkt * pkt) 00041 { 00042 rtsp_thread * rtsp_t; 00043 int i; 00044 for (i = 0; i < pkt->common.count; i++) 00045 nms_printf(NMSML_DBG3, "Received BYE from SSRC: %u\n", 00046 pkt->r.bye.src[i]); 00047 00048 rtsp_t = ssrc->rtp_sess->owner; 00049 rtsp_t->rtp_th->run = 0; 00050 return 0; 00051 } 00052 00058 int rtcp_send_bye(rtp_session * rtp_sess) 00059 { 00060 // TODO: really send bye packet 00061 nms_printf(NMSML_DBG1, 00062 "SRRC %d: sending RTCP Bye. Warning! Not yet implemented!", 00063 rtp_sess->local_ssrc); 00064 return 0; 00065 }
1.5.4