mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
miracle-dispd: minor value returning style tunning
Change-Id: I608154ffcbe0f25b4bfa9f78d0f457afe1e4fb89
This commit is contained in:
parent
8a2ac463bd
commit
b20af3e3b5
2 changed files with 3 additions and 6 deletions
|
@ -93,8 +93,7 @@ int wfd_out_session_new(struct wfd_session **out,
|
|||
// os->display_param_value = display_param;
|
||||
// }
|
||||
|
||||
*out = s;
|
||||
s = NULL;
|
||||
*out = wfd_session_ref(s);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -501,8 +500,7 @@ static int wfd_out_session_handle_pause_request(struct wfd_session *s,
|
|||
return log_ERRNO();
|
||||
}
|
||||
|
||||
*out_rep = m;
|
||||
m = NULL;
|
||||
*out_rep = (rtsp_message_ref(m), m);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -143,9 +143,8 @@ int wfd_sink_create_session(struct wfd_sink *sink, struct wfd_session **out)
|
|||
return r;
|
||||
}
|
||||
|
||||
sink->session = sess;
|
||||
sink->session = wfd_session_ref(sess);
|
||||
*out = wfd_session_ref(sess);
|
||||
sess = NULL;
|
||||
|
||||
wfd_fn_sink_properties_changed(sink, "Session");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue