info: avoid global variable for log_file
authorStefan Sauer <ensonic@users.sf.net>
Fri, 12 Sep 2014 12:42:23 +0000 (14:42 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Wed, 17 Sep 2014 07:47:36 +0000 (09:47 +0200)
commita528dadb9800fd3b21b60c4b3cd707e4616aed41
tree6b0767d4216c98d65b7ffda6c0d2923b413afa3c
parent343007894e4c4f5d320105eaa4c932896b763787
info: avoid global variable for log_file

Use user_data to pass the log_file handle to the logger-function.

If one wants to change the log target (e.g. GST_DEBUG_FILE), simply call
gst_debug_remove_log_function() and re-add the handler with the new log-target
using gst_debug_add_log_function ().
gst/gstinfo.c