fail_unless (gst_encoding_target_save (orig, NULL));
/* Check we can load it */
- profile_file_name = g_build_filename (g_get_home_dir (), ".gstreamer-0.10",
+ profile_file_name = g_build_filename (g_get_home_dir (), ".gstreamer-0.11",
"encoding-profiles", "herding", "myponytarget2.gep", NULL);
GST_DEBUG ("Loading target from '%s'", profile_file_name);
loaded = gst_encoding_target_load_from_file (profile_file_name, NULL);
gst_encoding_target_unref (target);
/* Test loading using fully specified path */
- profile_file_name = g_build_filename (g_get_home_dir (), ".gstreamer-0.10",
+ profile_file_name = g_build_filename (g_get_home_dir (), ".gstreamer-0.11",
"encoding-profiles", "herding", "myponytarget.gep", NULL);
GST_DEBUG ("Loading target from '%s'", profile_file_name);
/* If tmp is NULL, it means we iterated the whole list without finding
* our target */
fail_if (tmp == NULL);
- g_list_foreach (targets, (GFunc) gst_mini_object_unref, NULL);
+ g_list_foreach (targets, (GFunc) g_object_unref, NULL);
g_list_free (targets);
/* Try getting all available targets without a specified category */
/* If tmp is NULL, it means we iterated the whole list without finding
* our target */
fail_if (tmp == NULL);
- g_list_foreach (targets, (GFunc) gst_mini_object_unref, NULL);
+ g_list_foreach (targets, (GFunc) g_object_unref, NULL);
g_list_free (targets);
}
{
gchar *profile_file_name;
- profile_file_name = g_build_filename (g_get_home_dir (), ".gstreamer-0.10",
+ profile_file_name = g_build_filename (g_get_home_dir (), ".gstreamer-0.11",
"encoding-profiles", "herding", "myponytarget.gep", NULL);
g_unlink (profile_file_name);
g_free (profile_file_name);
- profile_file_name = g_build_filename (g_get_home_dir (), ".gstreamer-0.10",
+ profile_file_name = g_build_filename (g_get_home_dir (), ".gstreamer-0.11",
"encoding-profiles", "herding", "myponytarget2.gep", NULL);
g_unlink (profile_file_name);
g_free (profile_file_name);
GError *error = NULL;
profile_dir =
- g_build_filename (g_get_home_dir (), ".gstreamer-0.10",
+ g_build_filename (g_get_home_dir (), ".gstreamer-0.11",
"encoding-profiles", "herding", NULL);
profile_file_name =
- g_build_filename (g_get_home_dir (), ".gstreamer-0.10",
+ g_build_filename (g_get_home_dir (), ".gstreamer-0.11",
"encoding-profiles", "herding", "myponytarget.gep", NULL);
g_mkdir_with_parents (profile_dir, S_IRUSR | S_IWUSR | S_IXUSR);
if (!g_file_set_contents (profile_file_name, profile_string,
gchar *gst_dir;
/* cehck if we can create profiles */
- gst_dir = g_build_filename (g_get_home_dir (), ".gstreamer-0.10", NULL);
+ gst_dir = g_build_filename (g_get_home_dir (), ".gstreamer-0.11", NULL);
can_write = (g_access (gst_dir, R_OK | W_OK | X_OK) == 0);
g_free (gst_dir);