mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
info: shorten __FILE__ on all platforms
This is useful not only for MSVC, but also with gcc/Linux when doing cross-compilation builds and out-of-tree builds. https://bugzilla.gnome.org/show_bug.cgi?id=745213
This commit is contained in:
parent
7b48b7a5bc
commit
6cbe86dc58
1 changed files with 0 additions and 4 deletions
|
@ -444,7 +444,6 @@ gst_debug_log (GstDebugCategory * category, GstDebugLevel level,
|
|||
va_end (var_args);
|
||||
}
|
||||
|
||||
#ifdef G_OS_WIN32
|
||||
/* based on g_basename(), which we can't use because it was deprecated */
|
||||
static inline const gchar *
|
||||
gst_path_basename (const gchar * file_name)
|
||||
|
@ -467,7 +466,6 @@ gst_path_basename (const gchar * file_name)
|
|||
|
||||
return file_name;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* gst_debug_log_valist:
|
||||
|
@ -500,9 +498,7 @@ gst_debug_log_valist (GstDebugCategory * category, GstDebugLevel level,
|
|||
/* The predefined macro __FILE__ is always the exact path given to the
|
||||
* compiler with MSVC, which may or may not be the basename. We work
|
||||
* around it at runtime to improve the readability. */
|
||||
#ifdef G_OS_WIN32
|
||||
file = gst_path_basename (file);
|
||||
#endif
|
||||
|
||||
message.message = NULL;
|
||||
message.format = format;
|
||||
|
|
Loading…
Reference in a new issue