tvheadend/rtp.h

45 lines
1.3 KiB
C

/*
* tvheadend, RTP interface
* Copyright (C) 2007 Andreas Öman
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef RTP_H_
#define RTP_H_
TAILQ_HEAD(th_rtp_pkt_queue, th_rtp_pkt);
typedef struct th_rtp_streamer {
struct th_rtp_pkt_queue trs_pktq;
struct th_rtp_pkt_queue trs_sendq;
int trs_qlen;
int16_t trs_seq;
int trs_fd;
struct sockaddr_in trs_dest;
int64_t trs_last_ts;
} th_rtp_streamer_t;
void rtp_streamer_init(th_rtp_streamer_t *trs, int fd,
struct sockaddr_in *dst);
void rtp_streamer_deinit(th_rtp_streamer_t *trs);
void rtp_streamer(struct th_subscription *s, uint8_t *buf, th_pid_t *pi,
int64_t pcr);
#endif /* RTP_H_ */