Add error handling.
(cherry picked from commit 47c86542bcab68d548dd1976a17dcd0a67faf1d8)
This commit is contained in:
parent
07489c1155
commit
4f84435528
@ -299,6 +299,15 @@ Version 1.8.0
|
|||||||
Version 1.6.16
|
Version 1.6.16
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||||
|
|
||||||
|
Submitted: Yoichi NAKAYAMA ( yoichi ) - 2012-03-03 20:35:08 PST
|
||||||
|
|
||||||
|
SF Bug Tracker id 3496702 - TvDeviceStop is called even if Start failed
|
||||||
|
|
||||||
|
In sample tvdevice, error of device_main() is not handled, and
|
||||||
|
TvDeviceStop() cause crash.
|
||||||
|
|
||||||
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||||
|
|
||||||
SF Bug Tracker id 3496942 - Memory leak in config_description_doc
|
SF Bug Tracker id 3496942 - Memory leak in config_description_doc
|
||||||
|
@ -46,7 +46,11 @@ int main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
int code;
|
int code;
|
||||||
|
|
||||||
device_main(argc, argv);
|
rc = device_main(argc, argv);
|
||||||
|
if (rc != UPNP_E_SUCCESS) {
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
/* start a command loop thread */
|
/* start a command loop thread */
|
||||||
code = ithread_create(&cmdloop_thread, NULL, TvDeviceCommandLoop, NULL);
|
code = ithread_create(&cmdloop_thread, NULL, TvDeviceCommandLoop, NULL);
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user