Mercurial > mplayer.hg
comparison libmpdemux/demuxer.c @ 7469:f53f1f126a05
get_sh_audio/get_sh_video removed (never used, also useless)
author | arpi |
---|---|
date | Sun, 22 Sep 2002 00:35:35 +0000 |
parents | 7d83ac879f51 |
children | 1056d2dc4f3a |
comparison
equal
deleted
inserted
replaced
7468:9360e5203200 | 7469:f53f1f126a05 |
---|---|
69 stream_reset(stream); | 69 stream_reset(stream); |
70 stream_seek(stream,stream->start_pos); | 70 stream_seek(stream,stream->start_pos); |
71 return d; | 71 return d; |
72 } | 72 } |
73 | 73 |
74 sh_audio_t *get_sh_audio(demuxer_t *demuxer, int id) | |
75 { | |
76 if(id > MAX_A_STREAMS-1 || id < 0) | |
77 { | |
78 mp_msg(MSGT_DEMUXER,MSGL_WARN,"Requested audio stream id overflow (%d > %d)\n", | |
79 id, MAX_A_STREAMS); | |
80 return NULL; | |
81 } | |
82 return demuxer->a_streams[id]; | |
83 } | |
84 | |
85 sh_audio_t* new_sh_audio(demuxer_t *demuxer,int id){ | 74 sh_audio_t* new_sh_audio(demuxer_t *demuxer,int id){ |
86 if(id > MAX_A_STREAMS-1 || id < 0) | 75 if(id > MAX_A_STREAMS-1 || id < 0) |
87 { | 76 { |
88 mp_msg(MSGT_DEMUXER,MSGL_WARN,"Requested audio stream id overflow (%d > %d)\n", | 77 mp_msg(MSGT_DEMUXER,MSGL_WARN,"Requested audio stream id overflow (%d > %d)\n", |
89 id, MAX_A_STREAMS); | 78 id, MAX_A_STREAMS); |
101 | 90 |
102 void free_sh_audio(sh_audio_t* sh){ | 91 void free_sh_audio(sh_audio_t* sh){ |
103 mp_msg(MSGT_DEMUXER,MSGL_V,"DEMUXER: freeing sh_audio at %p \n",sh); | 92 mp_msg(MSGT_DEMUXER,MSGL_V,"DEMUXER: freeing sh_audio at %p \n",sh); |
104 if(sh->wf) free(sh->wf); | 93 if(sh->wf) free(sh->wf); |
105 free(sh); | 94 free(sh); |
106 } | |
107 | |
108 sh_video_t *get_sh_video(demuxer_t *demuxer, int id) | |
109 { | |
110 if(id > MAX_V_STREAMS-1 || id < 0) | |
111 { | |
112 mp_msg(MSGT_DEMUXER,MSGL_WARN,"Requested video stream id overflow (%d > %d)\n", | |
113 id, MAX_V_STREAMS); | |
114 return NULL; | |
115 } | |
116 return demuxer->v_streams[id]; | |
117 } | 95 } |
118 | 96 |
119 sh_video_t* new_sh_video(demuxer_t *demuxer,int id){ | 97 sh_video_t* new_sh_video(demuxer_t *demuxer,int id){ |
120 if(id > MAX_V_STREAMS-1 || id < 0) | 98 if(id > MAX_V_STREAMS-1 || id < 0) |
121 { | 99 { |