Mercurial > audlegacy-plugins
comparison src/alac/plugin.c @ 1190:ed2d7787779e trunk
more warning elimination.
| author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
|---|---|
| date | Thu, 21 Jun 2007 17:33:00 +0900 |
| parents | 37abd9b3de4b |
| children | 190a447e5229 |
comparison
equal
deleted
inserted
replaced
| 1189:af5bd4592100 | 1190:ed2d7787779e |
|---|---|
| 143 TitleInput *build_tuple(char *filename) | 143 TitleInput *build_tuple(char *filename) |
| 144 { | 144 { |
| 145 demux_res_t demux_res; | 145 demux_res_t demux_res; |
| 146 VFSFile *input_file; | 146 VFSFile *input_file; |
| 147 stream_t *input_stream; | 147 stream_t *input_stream; |
| 148 TitleInput *ti; | |
| 149 | 148 |
| 150 input_file = vfs_fopen(filename, "rb"); | 149 input_file = vfs_fopen(filename, "rb"); |
| 151 input_stream = stream_create_file(input_file, 1); | 150 input_stream = stream_create_file(input_file, 1); |
| 152 | 151 |
| 153 set_endian(); | 152 set_endian(); |
| 161 /* if qtmovie_read returns successfully, the stream is up to | 160 /* if qtmovie_read returns successfully, the stream is up to |
| 162 * the movie data, which can be used directly by the decoder */ | 161 * the movie data, which can be used directly by the decoder */ |
| 163 if (!qtmovie_read(input_stream, &demux_res)) | 162 if (!qtmovie_read(input_stream, &demux_res)) |
| 164 { | 163 { |
| 165 stream_destroy(input_stream); | 164 stream_destroy(input_stream); |
| 166 vfs_fclose(input_file); | 165 vfs_fclose(input_file); |
| 167 return NULL; | 166 return NULL; |
| 168 } | 167 } |
| 169 | 168 |
| 170 stream_destroy(input_stream); | 169 stream_destroy(input_stream); |
| 171 vfs_fclose(input_file); | 170 vfs_fclose(input_file); |
| 196 } | 195 } |
| 197 | 196 |
| 198 static void seek(InputPlayback * data, gint time) | 197 static void seek(InputPlayback * data, gint time) |
| 199 { | 198 { |
| 200 seek_to = time; | 199 seek_to = time; |
| 201 } | |
| 202 | |
| 203 static gint get_time(InputPlayback *data) | |
| 204 { | |
| 205 if (going) | |
| 206 return get_output_time(); | |
| 207 else | |
| 208 return -1; | |
| 209 } | 200 } |
| 210 | 201 |
| 211 static int get_sample_info(demux_res_t *demux_res, uint32_t samplenum, | 202 static int get_sample_info(demux_res_t *demux_res, uint32_t samplenum, |
| 212 uint32_t *sample_duration, | 203 uint32_t *sample_duration, |
| 213 uint32_t *sample_byte_size) | 204 uint32_t *sample_byte_size) |
| 316 DECLARE_PLUGIN(alac, NULL, NULL, alac_iplist, NULL, NULL, NULL, NULL); | 307 DECLARE_PLUGIN(alac, NULL, NULL, alac_iplist, NULL, NULL, NULL, NULL); |
| 317 | 308 |
| 318 gpointer decode_thread(void *args) | 309 gpointer decode_thread(void *args) |
| 319 { | 310 { |
| 320 demux_res_t demux_res; | 311 demux_res_t demux_res; |
| 321 unsigned int output_size, i; | |
| 322 gulong duration = 0; /* samples added up */ | 312 gulong duration = 0; /* samples added up */ |
| 323 gint framesize; | |
| 324 VFSFile *input_file; | 313 VFSFile *input_file; |
| 325 stream_t *input_stream; | 314 stream_t *input_stream; |
| 326 TitleInput *ti; | 315 TitleInput *ti; |
| 327 gchar *title; | 316 gchar *title; |
| 328 | 317 |
