filesrc, filesink: fix URI creation regression for non-absolute locations
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 24 Feb 2011 15:32:00 +0000 (15:32 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 24 Feb 2011 15:36:53 +0000 (15:36 +0000)
commit1f59906ec1a20645b1c299e835fa2d14c197b5eb
tree9d6ea76587a7d68e38927f71f7034acfb994ecd7
parent27027a2dd2c57d088e2a8b8d71c7526cf8083787
filesrc, filesink: fix URI creation regression for non-absolute locations

Passing e.g. location=foo would lead to warnings because g_filename_to_uri()
wants an absolute file path and returns NULL otherwise. Use brand-new
gst_filename_to_uri() instead, which will try harder to create a proper
URI for us.

Also add unit test.
plugins/elements/gstfilesink.c
plugins/elements/gstfilesrc.c
tests/check/elements/filesrc.c