Mercurial > mplayer.hg
comparison libmpdemux/tv.c @ 2931:bce9c945b29c
tv interface update
author | alex |
---|---|
date | Fri, 16 Nov 2001 21:30:10 +0000 |
parents | aebdcb39cadb |
children | fa3224774679 |
comparison
equal
deleted
inserted
replaced
2930:511f8eba46be | 2931:bce9c945b29c |
---|---|
1 /* | 1 /* |
2 TV subsystem for libMPDemux by Alex | 2 TV subsystem for libMPDemux by Alex |
3 | 3 |
4 API idea based on libvo2's | 4 API idea based on libvo2's |
5 | 5 |
6 UNDER HEAVY DEVELOPEMENT, DO NOT USE! :) | 6 UNDER HEAVY DEVELOPEMENT, NO FEATURE REQUESTS PLEASE! :) |
7 */ | 7 */ |
8 | 8 |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
11 #include <unistd.h> | 11 #include <unistd.h> |
51 { | 51 { |
52 int seq = tvh->seq++; | 52 int seq = tvh->seq++; |
53 demux_packet_t* dp; | 53 demux_packet_t* dp; |
54 int len; | 54 int len; |
55 | 55 |
56 mp_msg(MSGT_DEMUX, MSGL_DBG2, "demux_tv_fill_buffer(sequence:%d) called!\n", seq); | 56 mp_dbg(MSGT_DEMUX, MSGL_DBG2, "demux_tv_fill_buffer(sequence:%d) called!\n", seq); |
57 | 57 |
58 // demux->filepos = -1; | 58 // demux->filepos = -1; |
59 | 59 |
60 // seq++; | 60 // seq++; |
61 // tvh->seq++; | 61 // tvh->seq++; |
84 //dp->flags=flags; | 84 //dp->flags=flags; |
85 // append packet to DS stream: | 85 // append packet to DS stream: |
86 ds_add_packet(demux->audio,dp); | 86 ds_add_packet(demux->audio,dp); |
87 | 87 |
88 return 1; | 88 return 1; |
89 } | |
90 | |
91 int stream_open_tv(stream_t *stream, tvi_handle_t *tvh) | |
92 { | |
89 } | 93 } |
90 | 94 |
91 int demux_open_tv(demuxer_t *demuxer, tvi_handle_t *tvh) | 95 int demux_open_tv(demuxer_t *demuxer, tvi_handle_t *tvh) |
92 { | 96 { |
93 sh_video_t *sh_video = NULL; | 97 sh_video_t *sh_video = NULL; |
174 mp_msg(MSGT_TV, MSGL_INFO, "Output size: %dx%d\n", sh_video->disp_w, sh_video->disp_h); | 178 mp_msg(MSGT_TV, MSGL_INFO, "Output size: %dx%d\n", sh_video->disp_w, sh_video->disp_h); |
175 | 179 |
176 demuxer->video->sh = sh_video; | 180 demuxer->video->sh = sh_video; |
177 sh_video->ds = demuxer->video; | 181 sh_video->ds = demuxer->video; |
178 demuxer->video->id = 0; | 182 demuxer->video->id = 0; |
183 demuxer->seekable = 0; | |
179 | 184 |
180 /* here comes audio init */ | 185 /* here comes audio init */ |
181 if (funcs->control(tvh->priv, TVI_CONTROL_IS_AUDIO, 0) == TVI_CONTROL_TRUE) | 186 if (funcs->control(tvh->priv, TVI_CONTROL_IS_AUDIO, 0) == TVI_CONTROL_TRUE) |
182 { | 187 { |
183 int audio_format; | 188 int audio_format; |