summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-07 19:40:14 +0200
committerwm4 <wm4@nowhere>2013-07-07 19:42:38 +0200
commit854303ad49d188d96af8151b290162916c81c993 (patch)
treed47fc0ccd34adf47df7612c8b213d09b3816eae5 /stream/stream.h
parentfeaa721916303c36dcd676c11ac74ecdec2db006 (diff)
downloadmpv-854303ad49d188d96af8151b290162916c81c993.tar.bz2
mpv-854303ad49d188d96af8151b290162916c81c993.tar.xz
Remove internal network support
This commit removes the "old" networking code in favor of libavformat's code. The code was still used for mp_http, udp, ftp, cddb. http has been mapped to libavformat's http support since approximately 6 months ago. udp and ftp have support in ffmpeg (though ftp was added only last month). cddb support is removed with this commit - it's probably not important and rarely used if at all, so we don't care about it.
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/stream/stream.h b/stream/stream.h
index d5400470d3..98de2f4814 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -21,7 +21,6 @@
#include "config.h"
#include "core/mp_msg.h"
-#include "url.h"
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
@@ -116,29 +115,6 @@ struct stream_dvd_info_req {
int num_subs;
};
-typedef enum {
- streaming_stopped_e,
- streaming_playing_e
-} streaming_status;
-
-// All this is for legacy http streams (and other things using tcp/udp)
-typedef struct streaming_control {
- URL_t *url;
- streaming_status status;
- char *buffer;
- unsigned int buffer_size;
- unsigned int buffer_pos;
- unsigned int bandwidth; // The downstream available
- int (*streaming_read)(int fd, char *buffer, int buffer_size,
- struct streaming_control *stream_ctrl);
- int (*streaming_seek)(int fd, int64_t pos,
- struct streaming_control *stream_ctrl);
- void *data;
- // hacks for asf
- int *audio_id_ptr;
- int *video_id_ptr;
-} streaming_ctrl_t;
-
struct stream;
typedef struct stream_info_st {
const char *info;
@@ -185,7 +161,6 @@ typedef struct stream {
char *mime_type; // when HTTP streaming is used
char *lavf_type; // name of expected demuxer type for lavf
struct MPOpts *opts;
- streaming_ctrl_t *streaming_ctrl;
FILE *capture_file;
char *capture_filename;
@@ -196,10 +171,6 @@ typedef struct stream {
unsigned char buffer[];
} stream_t;
-#ifdef CONFIG_NETWORKING
-#include "network.h"
-#endif
-
int stream_fill_buffer(stream_t *s);
void stream_set_capture_file(stream_t *s, const char *filename);