Mercurial > mplayer.hg
annotate stream/stream_nemesi.c @ 33984:60449f4234f7
Add doxygen comments to bitmap.c and bitmap.h.
author | ib |
---|---|
date | Tue, 06 Sep 2011 15:10:01 +0000 |
parents | 592d70e6f51a |
children | a93891202051 |
rev | line source |
---|---|
24564 | 1 /* |
26737
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
2 * based on previous RTSP support from Benjamin Zores. |
24564 | 3 * |
26737
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
4 * Copyright (C) 2007 Alessandro Molina <amol.wrk@gmail.com> |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
5 * |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
6 * This file is part of MPlayer. |
24564 | 7 * |
26737
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
8 * MPlayer is free software; you can redistribute it and/or modify |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
9 * it under the terms of the GNU General Public License as published by |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
10 * the Free Software Foundation; either version 2 of the License, or |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
11 * (at your option) any later version. |
24564 | 12 * |
26737
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
13 * MPlayer is distributed in the hope that it will be useful, |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
16 * GNU General Public License for more details. |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
17 * |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
18 * You should have received a copy of the GNU General Public License along |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
19 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
a26e50cae389
Use standard license headers with standard formatting.
diego
parents:
25268
diff
changeset
|
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
24564 | 21 */ |
22 | |
23 #include <stdlib.h> | |
24 #include <string.h> | |
25 #include <stdlib.h> | |
26 #include <stdio.h> | |
27 #include <ctype.h> | |
28 #include "config.h" | |
29 #include "nemesi/rtsp.h" | |
30 | |
31 #include <errno.h> | |
32 | |
31427
9494acd724a9
Remove duplicate network_bandwidth extern declarations.
diego
parents:
30633
diff
changeset
|
33 #include "network.h" |
24564 | 34 #include "stream.h" |
25268 | 35 #include "libmpdemux/demuxer.h" |
36 | |
24564 | 37 #include "tcp.h" |
38 | |
39 char *rtsp_destination = NULL; | |
40 | |
41 static int rtsp_streaming_seek(int fd, off_t pos, | |
42 streaming_ctrl_t* streaming_ctrl) { | |
43 return -1; | |
44 } | |
45 | |
46 static int rtsp_streaming_open (stream_t *stream, int mode, void *opts, | |
47 int *file_format) | |
48 { | |
49 URL_t *url; | |
50 stream->fd = -1; | |
51 | |
52 mp_msg (MSGT_OPEN, MSGL_V, "STREAM_RTSP, URL: %s\n", stream->url); | |
53 stream->streaming_ctrl = streaming_ctrl_new (); | |
54 if (!stream->streaming_ctrl) | |
55 return STREAM_ERROR; | |
56 | |
57 stream->streaming_ctrl->bandwidth = network_bandwidth; | |
58 url = url_new(stream->url); | |
59 stream->streaming_ctrl->url = check4proxies(url); | |
60 stream->streaming_ctrl->streaming_seek = rtsp_streaming_seek; | |
61 | |
25266
239330301b33
Make libnemesi use specific struct and DEMUXER_TYPE
lu_zero
parents:
25211
diff
changeset
|
62 *file_format = DEMUXER_TYPE_RTP_NEMESI; |
24564 | 63 stream->type = STREAMTYPE_STREAM; |
64 return STREAM_OK; | |
65 } | |
66 | |
25211 | 67 const stream_info_t stream_info_rtsp = { |
24564 | 68 "RTSP streaming", |
69 "rtsp", | |
70 "Alessandro Molina", | |
71 "implemented over libnemesi", | |
72 rtsp_streaming_open, | |
73 {"rtsp", NULL}, | |
74 NULL, | |
75 0 /* Urls are an option string */ | |
76 }; |