comparison src/audacious/input.c @ 3128:343504d43afc trunk

Fix warnings.
author William Pitcock <nenolod@atheme-project.org>
date Fri, 20 Jul 2007 19:42:24 -0500
parents c92070f10148
children dfe8f4eb3dba
comparison
equal deleted inserted replaced
3127:c92070f10148 3128:343504d43afc
370 mimetype = vfs_get_metadata(fd, "content-type"); 370 mimetype = vfs_get_metadata(fd, "content-type");
371 if ((ip = mime_get_plugin(mimetype)) != NULL) 371 if ((ip = mime_get_plugin(mimetype)) != NULL)
372 { 372 {
373 g_free(filename_proxy); 373 g_free(filename_proxy);
374 vfs_fclose(fd); 374 vfs_fclose(fd);
375 return ip; 375
376 pr = g_new0(ProbeResult, 1);
377 pr->ip = NULL;
378
379 return pr;
376 } 380 }
377 381
378 for (node = get_input_list(); node != NULL; node = g_list_next(node)) 382 for (node = get_input_list(); node != NULL; node = g_list_next(node))
379 { 383 {
380 ip = INPUT_PLUGIN(node->data); 384 ip = INPUT_PLUGIN(node->data);
548 filename_proxy = g_strdup(filename); 552 filename_proxy = g_strdup(filename);
549 553
550 pr = input_check_file(filename_proxy, FALSE); 554 pr = input_check_file(filename_proxy, FALSE);
551 555
552 if (!pr) 556 if (!pr)
553 return; 557 return NULL;
554 558
555 ip = pr->ip; 559 ip = pr->ip;
556 560
557 g_free(pr); 561 g_free(pr);
558 562