comparison src/audacious/playback.c @ 3514:331bfc72ef66 trunk

Convert some things to use GSlice.
author William Pitcock <nenolod@atheme.org>
date Tue, 11 Sep 2007 20:29:53 -0500
parents 3092a8b3fe34
children 30ef1287da19
comparison
equal deleted inserted replaced
3513:d74a68871159 3514:331bfc72ef66
246 g_mutex_free(playback->pb_ready_mutex); 246 g_mutex_free(playback->pb_ready_mutex);
247 if (playback->pb_ready_cond) 247 if (playback->pb_ready_cond)
248 g_cond_free(playback->pb_ready_cond); 248 g_cond_free(playback->pb_ready_cond);
249 249
250 g_free(playback->filename); 250 g_free(playback->filename);
251 g_free(playback); 251 g_slice_free(InputPlayback, playback);
252 set_current_input_playback(NULL); 252 set_current_input_playback(NULL);
253 #ifdef USE_DBUS 253 #ifdef USE_DBUS
254 mpris_emit_status_change(mpris, MPRIS_STATUS_STOP); 254 mpris_emit_status_change(mpris, MPRIS_STATUS_STOP);
255 #endif 255 #endif
256 } 256 }
341 return FALSE; 341 return FALSE;
342 } 342 }
343 343
344 ip_data.playing = TRUE; 344 ip_data.playing = TRUE;
345 345
346 playback = g_new0(InputPlayback, 1); 346 playback = g_slice_new0(InputPlayback);
347 347
348 entry->decoder->output = &psuedo_output_plugin; 348 entry->decoder->output = &psuedo_output_plugin;
349 349
350 playback->plugin = entry->decoder; 350 playback->plugin = entry->decoder;
351 playback->output = &psuedo_output_plugin; 351 playback->output = &psuedo_output_plugin;