Construct path based on the API version, not $major.$minor version.
* Boston, MA 02110-1301, USA.
*/
* Boston, MA 02110-1301, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
GHashTable *res;
GError *err = NULL;
GHashTable *res;
GError *err = NULL;
+ GST_INFO_OBJECT (dvbbasebin, "parsing '%s'", filename);
+
if (!g_file_get_contents (filename, &contents, NULL, &err))
goto open_fail;
if (!g_file_get_contents (filename, &contents, NULL, &err))
goto open_fail;
filename = g_strdup (g_getenv ("GST_DVB_CHANNELS_CONF"));
if (filename == NULL) {
filename = g_strdup (g_getenv ("GST_DVB_CHANNELS_CONF"));
if (filename == NULL) {
- guint major, minor, micro, nano;
-
- gst_version (&major, &minor, µ, &nano);
- filename = g_strdup_printf ("%s/gstreamer-%d.%d/dvb-channels.conf",
- g_get_user_config_dir (), major, minor);
+ filename = g_build_filename (g_get_user_config_dir (),
+ "gstreamer-" GST_API_VERSION, "dvb-channels.conf", NULL);
}
channels = parse_channels_conf_from_file (dvbbasebin, filename);
g_free (filename);
}
channels = parse_channels_conf_from_file (dvbbasebin, filename);
g_free (filename);