info: move __FILE__ path shortening into default log handler
authorTim-Philipp Müller <tim@centricular.com>
Thu, 5 Mar 2015 17:54:04 +0000 (17:54 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 5 Mar 2015 17:57:58 +0000 (17:57 +0000)
commit5764316a8e5ee227fbd1255927bbe5d3f9ab3b4a
treee739cba9717b9f6d509f7f6756776f82abfbf42d
parent6cbe86dc589d381a324a05c522096c38f73608a1
info: move __FILE__ path shortening into default log handler

Instead of always shortening the __FILE__ path, even if the
log message is not actually printed, which might happen if
the log level is activated but the category is not, only
shorten the path if we're actually going to output it and
if it looks like it needs shortening. Log handlers had no
guarantee that they would get a name instead of a path
anyway on any architecture, so it shouldn't be a problem.

https://bugzilla.gnome.org/show_bug.cgi?id=745213
gst/gstinfo.c