/** * Gstreamer Editing Services * * Copyright (C) <2012> Thibault Saunier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #include "test-utils.h" #include gchar * ges_test_get_audio_only_uri (void) { gchar *uri; GFile *cfile, *fdir, *f_audio_only; cfile = g_file_new_for_path (__FILE__); fdir = g_file_get_parent (cfile); f_audio_only = g_file_get_child (fdir, "audio_only.ogg"); uri = g_file_get_uri (f_audio_only); g_object_unref (cfile); g_object_unref (fdir); g_object_unref (f_audio_only); return uri; } gchar * ges_test_get_audio_video_uri (void) { gchar *uri; GFile *cfile, *fdir, *f_audio_video; cfile = g_file_new_for_path (__FILE__); fdir = g_file_get_parent (cfile); f_audio_video = g_file_get_child (fdir, "audio_video.ogg"); uri = g_file_get_uri (f_audio_video); g_object_unref (cfile); g_object_unref (fdir); g_object_unref (f_audio_video); return uri; } gchar * ges_test_file_uri (const gchar * filename) { gchar *uri; GFile *cfile, *fdir, *f_xptv; cfile = g_file_new_for_path (__FILE__); fdir = g_file_get_parent (cfile); f_xptv = g_file_get_child (fdir, filename); uri = g_file_get_uri (f_xptv); g_object_unref (cfile); g_object_unref (fdir); g_object_unref (f_xptv); return uri; }