comparison src/tta/libtta.c @ 1465:db616ccdd40c

use tuple_free(x) in place of mowgli_object_unref(x)
author Giacomo Lozito <james@develia.org>
date Sat, 11 Aug 2007 12:21:30 +0200
parents 195b5657303e
children eb0913bf54c3
comparison
equal deleted inserted replaced
1464:a19e4395eaff 1465:db616ccdd40c
191 if ((tuple = get_song_tuple(filename)) != NULL) { 191 if ((tuple = get_song_tuple(filename)) != NULL) {
192 *length = tuple_get_int(tuple, "length"); 192 *length = tuple_get_int(tuple, "length");
193 *title = get_song_title(tuple); 193 *title = get_song_title(tuple);
194 } 194 }
195 195
196 mowgli_object_unref(tuple); 196 tuple_free(tuple);
197 } 197 }
198 198
199 static void * 199 static void *
200 play_loop (InputPlayback *playback) 200 play_loop (InputPlayback *playback)
201 { 201 {
501 return; 501 return;
502 } 502 }
503 503
504 tuple = get_song_tuple(filename); 504 tuple = get_song_tuple(filename);
505 title = get_song_title(tuple); 505 title = get_song_title(tuple);
506 mowgli_object_unref(tuple); 506 tuple_free(tuple);
507 507
508 datasize = file_size(filename) - info.DATAPOS; 508 datasize = file_size(filename) - info.DATAPOS;
509 origsize = info.DATALENGTH * info.BSIZE * info.NCH; 509 origsize = info.DATALENGTH * info.BSIZE * info.NCH;
510 510
511 bitrate = (int) ((float) datasize / origsize * 511 bitrate = (int) ((float) datasize / origsize *