Minor cleanup

This commit is contained in:
Jan Vidar Krey 2009-05-16 12:25:28 +02:00
parent 82ac450b4b
commit 078470ce64
2 changed files with 2 additions and 8 deletions

View File

@ -34,6 +34,7 @@
struct adc_message* adc_msg_incref(struct adc_message* msg)
{
if (!msg) return 0;
#ifndef ADC_MESSAGE_INCREF
msg->references++;
return msg;

View File

@ -112,15 +112,8 @@ void user_set_state(struct user* user, enum user_state state)
void user_set_info(struct user* user, struct adc_message* cmd)
{
adc_msg_free(user->info);
if (cmd)
{
user->info = adc_msg_incref(cmd);
}
else
{
user->info = 0;
}
}
static int convert_support_fourcc(int fourcc)