info: only open log file when adding it to the log function
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 31 Mar 2016 10:46:03 +0000 (11:46 +0100)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Sat, 2 Apr 2016 09:47:57 +0000 (10:47 +0100)
commit1bb699446af3129f4647fd1504bd32574e060b2c
tree8ee44aa9aaa885459cbfea602be273a7e711f4eb
parentc32ea3cb58a3edc65d3999c6f4188b6cf913a74c
info: only open log file when adding it to the log function

This avoids the leak of opening it and then not passing it or closing it
before it goes out of scope.
gst/gstinfo.c