summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-09-17 19:53:33 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-09-17 19:54:26 +0200
commit748433776aacd69a95fdadd35288628755b15d24 (patch)
tree70f49b6fd61ac43b5ea75e83797481e6f75b39a9
parent0447e72c97a28ba9c173730b8ada1960b1c9ab2f (diff)
gst-launch: Use g_file_test() instead of access() which does not exist on MSVC6
Fixes bug #629494.
-rw-r--r--tools/gst-launch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c
index 6ff3ed763d..10b7fae8a0 100644
--- a/tools/gst-launch.c
+++ b/tools/gst-launch.c
@@ -695,7 +695,7 @@ bus_sync_handler (GstBus * bus, GstMessage * message, gpointer data)
{
gchar *access_name = g_strconcat (g_get_tmp_dir (), G_DIR_SEPARATOR_S,
"gst-launch", G_DIR_SEPARATOR_S, state_transition_name, NULL);
- access (access_name, R_OK);
+ g_file_test (access_name, G_FILE_TEST_EXISTS);
g_free (access_name);
}