[mythtv] [PATCH]Shouldn't MythVideo store filenames relative to
VideoStartupDir?
Neale Swinnerton
mythtv-dev.spam at isismanor.com
Wed Mar 16 16:31:01 UTC 2005
Hi,
I've been having a problem with MythVideo and the way it stores
filenames in the Database.
I have 1 machine that acts as a nfs server and another frontend that
mounts the Video directory from that nfs server. On the nfs server I
occasionally run a frontend that accesses the disk 'direct' (and via a
different path)
Although MythVideo allows you to specify a VideoStartupDir, the
filenames stored in videometadata are absolute, so if I do a video scan
on one machine I can't browse them on the other.
The attached patch makes VideoScan store the paths relative to
VideoStartupDir. It also tweaks the playVideo methods to prepend
VideoStartupDir before invoking the player.
The existing code seems to have some support for multiple
VideoStartupDirs, separated by ':', I've removed this, since it would
then mean each frontend would need to search for the appropriate
VideoStartupDir, which seemed odd to me.
I guess this change will break any existing data in the videometadata,
but it would be straightforward to tweak that data to fix it.
Anyone have any thoughts on this?
Neale.
PS: My C++ is rusty and Qt non-existent, so feel free to shoot holes in
the patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: relative.db.filenames.patch
Type: text/x-patch
Size: 4880 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050316/da07b638/relative.db.filenames.bin
More information about the mythtv-dev
mailing list