tests: fix build on Windows with MSVC
This commit is contained in:
parent
d09c38faf7
commit
e7f77f3a01
@ -587,7 +587,14 @@ create_profile_file (void)
|
|||||||
profile_file_name =
|
profile_file_name =
|
||||||
g_build_filename (g_get_user_data_dir (), "gstreamer-1.0",
|
g_build_filename (g_get_user_data_dir (), "gstreamer-1.0",
|
||||||
"encoding-profiles", "herding", "myponytarget.gep", NULL);
|
"encoding-profiles", "herding", "myponytarget.gep", NULL);
|
||||||
|
|
||||||
|
/* on Windows it will ignore the mode anyway */
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
g_mkdir_with_parents (profile_dir, 0700);
|
||||||
|
#else
|
||||||
g_mkdir_with_parents (profile_dir, S_IRUSR | S_IWUSR | S_IXUSR);
|
g_mkdir_with_parents (profile_dir, S_IRUSR | S_IWUSR | S_IXUSR);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!g_file_set_contents (profile_file_name, profile_string,
|
if (!g_file_set_contents (profile_file_name, profile_string,
|
||||||
strlen (profile_string), &error))
|
strlen (profile_string), &error))
|
||||||
GST_WARNING ("Couldn't write contents to file : %s", error->message);
|
GST_WARNING ("Couldn't write contents to file : %s", error->message);
|
||||||
|
@ -307,7 +307,7 @@ validate_event (guint index, const gchar * name, const gchar * field, ...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
validate_normal_start_events (uint index)
|
validate_normal_start_events (guint index)
|
||||||
{
|
{
|
||||||
validate_event (index, "stream-start", NULL);
|
validate_event (index, "stream-start", NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user