diff options
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/play/play.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/play/play.c b/gst-libs/gst/play/play.c index d41c69a8..7f1dc579 100644 --- a/gst-libs/gst/play/play.c +++ b/gst-libs/gst/play/play.c @@ -314,10 +314,11 @@ gst_play_set_location (GstPlay * play, const char *location) else if (location[0] == '/') uri = g_strdup_printf ("file://%s", location); else { - char cwd[256]; + gchar *cwd; - getcwd (cwd, 255); + cwd = g_get_current_dir (); uri = g_strdup_printf ("file://%s/%s", cwd, location); + g_free (cwd); } g_object_set (play->priv->playbin, "uri", uri, NULL); g_free (uri); |