x11: allow unicode input
[mplayer.git] / stream / librtsp / rtsp_rtp.h
blobea96150777c33512b690c7afca2683caf36d55c2
1 /*
2 * Copyright (C) 2006 Benjamin Zores
3 * heavily base on the Freebox patch for xine by Vincent Mussard
4 * but with many enhancements for better RTSP RFC compliance.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef MPLAYER_RTSP_RTP_H
22 #define MPLAYER_RTSP_RTP_H
24 #include <sys/types.h>
25 #include "rtsp.h"
27 #define MAX_PREVIEW_SIZE 4096
29 struct rtp_rtsp_session_t {
30 int rtp_socket;
31 int rtcp_socket;
32 char *control_url;
33 int count;
36 struct rtp_rtsp_session_t *rtp_setup_and_play (rtsp_t* rtsp_session);
37 off_t rtp_read (struct rtp_rtsp_session_t* st, char *buf, off_t length);
38 void rtp_session_free (struct rtp_rtsp_session_t *st);
39 void rtcp_send_rr (rtsp_t *s, struct rtp_rtsp_session_t *st);
41 #endif /* MPLAYER_RTSP_RTP_H */