Skip to content

Commit

Permalink
RaspberrIPCam Update
Browse files Browse the repository at this point in the history
Set config.xml path to absolute
Add 2s sleep at start to let time to finnish boot (especially for DHCP)
to avoid wrong IP rtsp startup
  • Loading branch information
SonsOfTone committed Nov 10, 2014
1 parent 537ed1b commit 57ad450
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RaspiVid.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ static void LoadConfigFile(RASPIVID_STATE *state)

xmlDocPtr doc;
xmlNodePtr cur;
char *docname = "config.xml";
char *docname = "/home/pi/RaspberrIP-Camera/config.xml";

doc = xmlParseFile(docname);

Expand Down Expand Up @@ -1875,6 +1875,9 @@ int main(int argc, const char **argv)

bcm_host_init();

//Let time to finish startup and configure network if launch at startup
sleep(2);

// Register our application with the logging system
vcos_log_register("RaspiVid", VCOS_LOG_CATEGORY);

Expand Down

0 comments on commit 57ad450

Please sign in to comment.