profile/ivi/rygel.git
13 years agobuild,media-export: Adapt to gupnp-dlna 0.3 API
Zeeshan Ali (Khattak) [Mon, 16 Aug 2010 20:25:26 +0000 (23:25 +0300)]
build,media-export: Adapt to gupnp-dlna 0.3 API

13 years agocore: Make use of GUPnP.ProtocolInfo
Zeeshan Ali (Khattak) [Mon, 16 Aug 2010 13:22:18 +0000 (16:22 +0300)]
core: Make use of GUPnP.ProtocolInfo

Instead of passing around ProtocolInfo as strings, use a list of
ProtocolInfo objects and translate them to strings only where/when needed.

13 years agoUpdated Galician translations
Fran Diéguez [Mon, 16 Aug 2010 15:47:55 +0000 (17:47 +0200)]
Updated Galician translations

13 years agobuild: Fix vala.m4
Jens Georg [Mon, 16 Aug 2010 07:59:13 +0000 (10:59 +0300)]
build: Fix vala.m4

 - Don't accumulate checks
 - Remove ugly leading white-space

13 years agocore: Prefix service URLs with a "/"
Zeeshan Ali (Khattak) [Mon, 16 Aug 2010 01:23:44 +0000 (04:23 +0300)]
core: Prefix service URLs with a "/"

This seems like the right way to do it and it might actually improve our
IOP.

13 years agodata: Set standard header on XML files
Zeeshan Ali (Khattak) [Mon, 16 Aug 2010 01:08:16 +0000 (04:08 +0300)]
data: Set standard header on XML files

13 years agoexternal: Mirco indentation fix
Zeeshan Ali (Khattak) [Sun, 15 Aug 2010 13:44:00 +0000 (16:44 +0300)]
external: Mirco indentation fix

13 years agoexternal: Remove redundant constants
Zeeshan Ali (Khattak) [Sun, 15 Aug 2010 13:29:39 +0000 (16:29 +0300)]
external: Remove redundant constants

13 years agomedia-export: Fix database upgrade to v10
Jens Georg [Sun, 15 Aug 2010 15:08:13 +0000 (18:08 +0300)]
media-export: Fix database upgrade to v10

13 years agomedia-export: Rename "Filesystem" folder
Jens Georg [Sun, 15 Aug 2010 13:51:39 +0000 (16:51 +0300)]
media-export: Rename "Filesystem" folder

13 years agomedia-export: Simplify format string
Jens Georg [Sat, 14 Aug 2010 14:17:25 +0000 (17:17 +0300)]
media-export: Simplify format string

13 years agoUpdated Spanish translation
Jorge González [Sun, 15 Aug 2010 19:03:19 +0000 (21:03 +0200)]
Updated Spanish translation

13 years agomedia-export: file filter may be null
Jens Georg [Sat, 14 Aug 2010 15:56:45 +0000 (18:56 +0300)]
media-export: file filter may be null

13 years agomedia-export: Speed up startup-filesystem walk
Jens Georg [Sat, 14 Aug 2010 13:43:02 +0000 (16:43 +0300)]
media-export: Speed up startup-filesystem walk

13 years agomedia-export: No need for fuzzy search
Jens Georg [Sat, 14 Aug 2010 13:02:40 +0000 (16:02 +0300)]
media-export: No need for fuzzy search

We define the UPnP classes so we can search for the exact classes

13 years agomedia-export: Move filesystem to special folder
Jens Georg [Sat, 14 Aug 2010 11:10:14 +0000 (14:10 +0300)]
media-export: Move filesystem to special folder

With the default virtual containers the root-folder's content was way to
cluttered

13 years agomedia-export: Implement a cancel-everything
Jens Georg [Sat, 14 Aug 2010 09:31:32 +0000 (12:31 +0300)]
media-export: Implement a cancel-everything

13 years agomedia-export: Fix a FIXME
Jens Georg [Sat, 14 Aug 2010 08:46:53 +0000 (11:46 +0300)]
media-export: Fix a FIXME

13 years agomedia-export: Remove custom virtual folders
Jens Georg [Sat, 14 Aug 2010 08:41:55 +0000 (11:41 +0300)]
media-export: Remove custom virtual folders

User-defined virtual folders are not not supported anymore

13 years agomedia-export: Expose default virtual folders
Jens Georg [Sat, 14 Aug 2010 08:34:29 +0000 (11:34 +0300)]
media-export: Expose default virtual folders

Expose a similar default virtual folder tree as tracker.
There are no "Tags" folders since we don't support tags.

Pictures
    -> Year             dc:date,?
    -> All              upnp:class,object.item.ImageItem
Music
    -> Year             dc:date,?
    -> Artist
        -> Album        upnp:artist,?,upnp:album,?
    -> Album            upnp:album,?
    -> Genre            upnp:genre,?
    -> All              upnp:class,object.item.audioIte
Videos
    -> Year             dc:date,?
    -> All              upnp:class,object.item.videoItem

13 years agomedia-export: Use derivedFrom on class
Jens Georg [Sat, 14 Aug 2010 08:31:00 +0000 (11:31 +0300)]
media-export: Use derivedFrom on class

If a virtual folder contains a match on upnp:class, assume that the
derivedFrom operator is meant

13 years agomedia-export: Move extractor to harvester
Jens Georg [Fri, 13 Aug 2010 20:17:41 +0000 (23:17 +0300)]
media-export: Move extractor to harvester

13 years agomedia-export: Minor coding style fix
Jens Georg [Wed, 4 Aug 2010 21:14:25 +0000 (00:14 +0300)]
media-export: Minor coding style fix

13 years agomedia-export: Move file handling to harvester
Jens Georg [Mon, 2 Aug 2010 19:57:39 +0000 (22:57 +0300)]
media-export: Move file handling to harvester

Reacting to changes is now also done in the Harvester class. No more
filesystem stuff in root container

13 years agomedia-export: Move public methods to top of class
Jens Georg [Mon, 2 Aug 2010 19:36:55 +0000 (22:36 +0300)]
media-export: Move public methods to top of class

13 years agomedia-export: Minor optimization
Jens Georg [Mon, 2 Aug 2010 19:19:10 +0000 (22:19 +0300)]
media-export: Minor optimization

No need for generic API

13 years agomedia-export: Make batch size a constant
Jens Georg [Mon, 2 Aug 2010 18:54:54 +0000 (21:54 +0300)]
media-export: Make batch size a constant

13 years agomedia-export: Avoid extra database query
Jens Georg [Sun, 1 Aug 2010 13:37:56 +0000 (15:37 +0200)]
media-export: Avoid extra database query

When checking for change conditions, avoid extra query for size-check.
Since push_if_changed_or_unknown will be called for MediaItems only,
there is no need for a left-outer join in the query.

13 years agomedia-export: Simplify child processing
Jens Georg [Fri, 30 Jul 2010 12:04:20 +0000 (14:04 +0200)]
media-export: Simplify child processing

13 years agomedia-export: Move id generation to MediaCache
Jens Georg [Fri, 30 Jul 2010 09:11:47 +0000 (11:11 +0200)]
media-export: Move id generation to MediaCache

Also use it consistently everywhere

13 years agomedia-export: No need for safeguard
Jens Georg [Fri, 30 Jul 2010 08:54:54 +0000 (10:54 +0200)]
media-export: No need for safeguard

13 years agomedia-export: Fix coding style
Jens Georg [Thu, 29 Jul 2010 23:18:13 +0000 (01:18 +0200)]
media-export: Fix coding style

13 years agomedia-export: Rename RecursiveFileMonitor.monitor
Jens Georg [Thu, 29 Jul 2010 22:24:26 +0000 (00:24 +0200)]
media-export: Rename RecursiveFileMonitor.monitor

Method was renamed to .add cause monitor seemed a bit awkward
(monitor.monitor)

13 years agocore: Use standard DLNA profile for WMV
Zeeshan Ali (Khattak) [Sat, 14 Aug 2010 01:49:57 +0000 (04:49 +0300)]
core: Use standard DLNA profile for WMV

I'm not sure this is correct but at least its a standard DLNA profile and
enables us to comply with DLNA requirements (7.3.29.3).

13 years agoi18n: Add a new C file to ignore list
Zeeshan Ali (Khattak) [Sat, 14 Aug 2010 01:46:37 +0000 (04:46 +0300)]
i18n: Add a new C file to ignore list

13 years agocore: Clean & correct seek-deciding code
Zeeshan Ali (Khattak) [Sat, 14 Aug 2010 01:31:00 +0000 (04:31 +0300)]
core: Clean & correct seek-deciding code

Clean & correct code that decides whether to seek or not and creates the
relavent HTTPSeek object.

This also enables us to comply with DLNA (7.3.33.5).

13 years agocore: Advertize byte-seek support for thumbnails
Zeeshan Ali (Khattak) [Sat, 14 Aug 2010 01:25:31 +0000 (04:25 +0300)]
core: Advertize byte-seek support for thumbnails

13 years agocore: Micro indentation fix
Zeeshan Ali (Khattak) [Fri, 13 Aug 2010 15:50:26 +0000 (18:50 +0300)]
core: Micro indentation fix

13 years agotracker: Fix ID of Years' children
Zeeshan Ali (Khattak) [Fri, 13 Aug 2010 14:25:34 +0000 (17:25 +0300)]
tracker: Fix ID of Years' children

Fix generation of ID for each child of 'Years' container.

13 years agocore: Make use of mime-type in item creation requests
Zeeshan Ali (Khattak) [Fri, 13 Aug 2010 14:07:22 +0000 (17:07 +0300)]
core: Make use of mime-type in item creation requests

If mime-type is provided in item creation request, there is no need
to guess it. Just use the one provided.

13 years agocore,tracker: Use DLNA PN in item creation requests
Zeeshan Ali (Khattak) [Fri, 13 Aug 2010 13:54:08 +0000 (16:54 +0300)]
core,tracker: Use DLNA PN in item creation requests

Use the DLNA profile when provided in item creation requests. This fixes
failing DLNA CTT testcase 7.3.26.4,5.

13 years agotracker: Provide DLNA profile when available
Zeeshan Ali (Khattak) [Thu, 12 Aug 2010 16:07:25 +0000 (19:07 +0300)]
tracker: Provide DLNA profile when available

13 years agomedia-export: Fix deprecation warnings with libgee
Jens Georg [Mon, 2 Aug 2010 18:07:43 +0000 (21:07 +0300)]
media-export: Fix deprecation warnings with libgee

13 years agomedia-export: Simplify code and code-flow
Jens Georg [Thu, 29 Jul 2010 23:05:44 +0000 (01:05 +0200)]
media-export: Simplify code and code-flow

13 years agomedia-export: Simplify enumerate_directoy
Jens Georg [Thu, 29 Jul 2010 23:01:15 +0000 (01:01 +0200)]
media-export: Simplify enumerate_directoy

enmerate_directory is an instance method, it can figure out itself
which directory it should use.

13 years agomedia-export: Small refactor
Jens Georg [Thu, 29 Jul 2010 22:50:47 +0000 (00:50 +0200)]
media-export: Small refactor

13 years agomedia-export: Small refactor
Jens Georg [Thu, 29 Jul 2010 22:48:23 +0000 (00:48 +0200)]
media-export: Small refactor

13 years agomedia-export: Fix coding style
Jens Georg [Thu, 29 Jul 2010 22:46:17 +0000 (00:46 +0200)]
media-export: Fix coding style

13 years agomedia-export: Update documentation
Jens Georg [Thu, 29 Jul 2010 22:22:21 +0000 (00:22 +0200)]
media-export: Update documentation

13 years agomedia-export: Don't do work twice
Jens Georg [Thu, 29 Jul 2010 16:57:43 +0000 (18:57 +0200)]
media-export: Don't do work twice

Container queue's head was fetched twice

13 years agomedia-export: Handle cancellation correctly in idle-func
Jens Georg [Thu, 29 Jul 2010 16:52:22 +0000 (18:52 +0200)]
media-export: Handle cancellation correctly in idle-func

13 years agomedia-export: Remove useless parameter
Jens Georg [Thu, 29 Jul 2010 15:58:55 +0000 (17:58 +0200)]
media-export: Remove useless parameter

13 years agomedia-export: Only build file-filter once
Jens Georg [Thu, 29 Jul 2010 15:55:33 +0000 (17:55 +0200)]
media-export: Only build file-filter once

File filter regex does not need to be generated for every harvesting
task

13 years agomedia-export: Update documentation of Harvester
Jens Georg [Thu, 29 Jul 2010 15:39:29 +0000 (17:39 +0200)]
media-export: Update documentation of Harvester

13 years agomedia-export: No need for harvester trash
Jens Georg [Thu, 29 Jul 2010 15:38:08 +0000 (17:38 +0200)]
media-export: No need for harvester trash

13 years agomedia-export: Simplify DummyContainer
Jens Georg [Wed, 28 Jul 2010 10:48:23 +0000 (12:48 +0200)]
media-export: Simplify DummyContainer

13 years agomedia-export: Refactor filessystem walking
Jens Georg [Wed, 28 Jul 2010 10:29:17 +0000 (12:29 +0200)]
media-export: Refactor filessystem walking

Handling harvester events and book-keeping is done by a new Harvester
class, the old harvester class has been renamed to HarvestingTask

13 years agotracker: Implement find_object() in 2 containers
Zeeshan Ali (Khattak) [Thu, 12 Aug 2010 14:36:13 +0000 (17:36 +0300)]
tracker: Implement find_object() in 2 containers

To speed-up the searches for particular objects, this patch adds
find_object() implementation to MetadataValues and SearchContainer.

13 years agocore: SimpleContainer implements find_object()
Zeeshan Ali (Khattak) [Thu, 12 Aug 2010 14:12:24 +0000 (17:12 +0300)]
core: SimpleContainer implements find_object()

The default find_object() implementation in base MediaContainer translates
find_object() to a search() query and since search() is recursive, the
whole tree under the container then gets a search() called on them so if
any of them has implemented find_object(), that implementation will never
be actually used. This is exactly what was happening in case of tracker
plugin and that was the main reason for it being so extremely slow in the
past few months.

Since most containers are SimpleContainer, this solves the problem for most
(if not all) of the plugins.

13 years agotracker: Unique IDs for MetadataValues's children
Zeeshan Ali (Khattak) [Thu, 12 Aug 2010 12:02:27 +0000 (15:02 +0300)]
tracker: Unique IDs for MetadataValues's children

Prefix IDs of MetadataValues's children containers with parent ID to
guarantee uniqueness in the hierarchy.

13 years agotracker: Default id & filter funcs shouldn't be public
Zeeshan Ali (Khattak) [Wed, 11 Aug 2010 17:13:06 +0000 (20:13 +0300)]
tracker: Default id & filter funcs shouldn't be public

13 years agotracker: Default id & filter funcs shouldn't be static
Zeeshan Ali (Khattak) [Wed, 11 Aug 2010 17:11:26 +0000 (20:11 +0300)]
tracker: Default id & filter funcs shouldn't be static

13 years agoUpdated Slovenian translation
Andrej Žnidaršič [Thu, 12 Aug 2010 12:12:49 +0000 (14:12 +0200)]
Updated Slovenian translation

13 years agocore,mediathek: Don't use deprecated libsoup API
Zeeshan Ali (Khattak) [Wed, 11 Aug 2010 15:39:36 +0000 (18:39 +0300)]
core,mediathek: Don't use deprecated libsoup API

Replace usage of Soup.MessageHeaders.get() with get_one().

13 years agocore: Correctly handle string involving plurals
Zeeshan Ali (Khattak) [Wed, 11 Aug 2010 14:37:02 +0000 (17:37 +0300)]
core: Correctly handle string involving plurals

13 years agobuild: Checks for gstreamer-tag & gstreamer-app VAPI
Zeeshan Ali (Khattak) [Wed, 11 Aug 2010 14:25:21 +0000 (17:25 +0300)]
build: Checks for gstreamer-tag & gstreamer-app VAPI

Check for these VAPIs if media-export plugin build is enabled.

13 years agobuild: Core doesn't require sqlite3
Zeeshan Ali (Khattak) [Wed, 11 Aug 2010 14:19:08 +0000 (17:19 +0300)]
build: Core doesn't require sqlite3

13 years agocore: Make sure HTTPServer gets created successfully
Zeeshan Ali (Khattak) [Wed, 11 Aug 2010 14:08:48 +0000 (17:08 +0300)]
core: Make sure HTTPServer gets created successfully

13 years agobuild: Correct Gtk+ vapi check
Zeeshan Ali (Khattak) [Wed, 11 Aug 2010 10:48:46 +0000 (13:48 +0300)]
build: Correct Gtk+ vapi check

13 years agobuild: Minor refactoring of configure.ac
Zeeshan Ali (Khattak) [Wed, 11 Aug 2010 10:37:45 +0000 (13:37 +0300)]
build: Minor refactoring of configure.ac

13 years agoexternal: Refactor properties retrieval code
Zeeshan Ali (Khattak) [Tue, 10 Aug 2010 23:48:34 +0000 (02:48 +0300)]
external: Refactor properties retrieval code

Refactor most of the code that gets different properties from hashtable.

13 years agoexternal: All 'size' properties are now 64-bit
Zeeshan Ali (Khattak) [Tue, 10 Aug 2010 23:33:32 +0000 (02:33 +0300)]
external: All 'size' properties are now 64-bit

This should have been part of commit a55f708.

13 years agoexternal: Use Vala's Value conversion capabilities
Zeeshan Ali (Khattak) [Tue, 10 Aug 2010 22:32:48 +0000 (01:32 +0300)]
external: Use Vala's Value conversion capabilities

Make use of Vala's ability to convert GLib.Value to primite types.

13 years agoexternal: Remove empty comment line
Zeeshan Ali (Khattak) [Tue, 10 Aug 2010 21:33:20 +0000 (00:33 +0300)]
external: Remove empty comment line

13 years agoexternal: Remove workaround for bug#602003
Zeeshan Ali (Khattak) [Tue, 10 Aug 2010 21:32:46 +0000 (00:32 +0300)]
external: Remove workaround for bug#602003

13 years agoexternal: Item should keep ref of dummy parent
Zeeshan Ali (Khattak) [Tue, 10 Aug 2010 21:20:49 +0000 (00:20 +0300)]
external: Item should keep ref of dummy parent

Item should keep parent's ref if parent is a dummy container.

13 years agocore,plugins: MediaItem.size is now int64
Zeeshan Ali (Khattak) [Mon, 9 Aug 2010 17:27:50 +0000 (20:27 +0300)]
core,plugins: MediaItem.size is now int64

This is so that we can deal with resources bigger than 2GB.

13 years agobuid: Require gupnp-av >= 0.5.9
Zeeshan Ali (Khattak) [Mon, 9 Aug 2010 17:27:18 +0000 (20:27 +0300)]
buid: Require gupnp-av >= 0.5.9

13 years agobuild: Add/use m4 magic for checking Vala bindings
Zeeshan Ali (Khattak) [Mon, 9 Aug 2010 14:01:13 +0000 (17:01 +0300)]
build: Add/use m4 magic for checking Vala bindings

m4 script from Marc-Andre Lureau <marcandre.lureau@gmail.com>.

13 years agovcs: Don't ignore the whole m4 directory
Zeeshan Ali (Khattak) [Mon, 9 Aug 2010 14:03:07 +0000 (17:03 +0300)]
vcs: Don't ignore the whole m4 directory

13 years agobuid: Require gupnp-vala 0.6.10
Zeeshan Ali (Khattak) [Mon, 9 Aug 2010 14:03:39 +0000 (17:03 +0300)]
buid: Require gupnp-vala 0.6.10

13 years agobuid: Require & adapt to Vala 0.9.5
Zeeshan Ali (Khattak) [Mon, 9 Aug 2010 13:58:20 +0000 (16:58 +0300)]
buid: Require & adapt to Vala 0.9.5

13 years agocore: Remove redundant return statement
Zeeshan Ali (Khattak) [Mon, 9 Aug 2010 13:52:43 +0000 (16:52 +0300)]
core: Remove redundant return statement

A call to GLib.error is fatal so any code after it will never be reached.

13 years agocore: Create media-art cache directory
Jens Georg [Tue, 10 Aug 2010 09:29:11 +0000 (12:29 +0300)]
core: Create media-art cache directory

Don't fail if directory doesn't exist, just create it

13 years agoexternal: Add the missing cast of child_count param
Zeeshan Ali (Khattak) [Tue, 10 Aug 2010 11:49:39 +0000 (14:49 +0300)]
external: Add the missing cast of child_count param

13 years agoexternal: Fix a typo
Zeeshan Ali (Khattak) [Mon, 9 Aug 2010 22:13:38 +0000 (01:13 +0300)]
external: Fix a typo

13 years agocore: Let PS3 seek into unseekable
Zeeshan Ali (Khattak) [Sun, 8 Aug 2010 23:10:24 +0000 (02:10 +0300)]
core: Let PS3 seek into unseekable

If PS3 wants to send a (totally unneeded) seek request for a resource that
is not seekable, let it!

13 years agocore: Ignore 'POST' request in server handler
Zeeshan Ali (Khattak) [Sat, 7 Aug 2010 01:50:53 +0000 (04:50 +0300)]
core: Ignore 'POST' request in server handler

With the current libsoup API, we are forced to handle the HTTP POST
messages before the server handler is called so by the time its called
the message must have already been handled and we don't need to do
anything about it anymore.

13 years agocore: Micro coding-style fix
Zeeshan Ali (Khattak) [Sat, 7 Aug 2010 01:39:59 +0000 (04:39 +0300)]
core: Micro coding-style fix

13 years agocore: Refactor HTTRequest classes a bit
Zeeshan Ali (Khattak) [Sat, 7 Aug 2010 01:32:04 +0000 (04:32 +0300)]
core: Refactor HTTRequest classes a bit

The async code was a bit clumsy and therefore unreadable.

13 years agotracker: Print debug after item creation in store
Zeeshan Ali (Khattak) [Sat, 7 Aug 2010 01:19:47 +0000 (04:19 +0300)]
tracker: Print debug after item creation in store

13 years agotracker: Micro coding-style fix
Zeeshan Ali (Khattak) [Sat, 7 Aug 2010 00:38:00 +0000 (03:38 +0300)]
tracker: Micro coding-style fix

13 years agocore: Correct GetCurrentConnectionInfo params
Zeeshan Ali (Khattak) [Sat, 7 Aug 2010 00:19:01 +0000 (03:19 +0300)]
core: Correct GetCurrentConnectionInfo params

Provide correct values for out parameters of GetCurrentConnectionInfo
action.

13 years agocore: List DLNA formats first
Zeeshan Ali (Khattak) [Fri, 6 Aug 2010 16:53:13 +0000 (19:53 +0300)]
core: List DLNA formats first

List DLNA formats first in the list of supported formats to satisfy DLNA
requirement 7.3.28.2.

13 years agocore: Correct DLNA profile for MPEG-TS HD
Zeeshan Ali (Khattak) [Fri, 6 Aug 2010 16:26:32 +0000 (19:26 +0300)]
core: Correct DLNA profile for MPEG-TS HD

This allows us to pass DLNA CTT testcases 7.3.29.3 and 7.3.29.4.

13 years agocore: Throw error on seeking request for the unseekable
Zeeshan Ali (Khattak) [Fri, 6 Aug 2010 16:18:58 +0000 (19:18 +0300)]
core: Throw error on seeking request for the unseekable

This is required by DLNA (7.3.33.4).

13 years agoUpdated Romanian translation
Lucian Adrian Grijincu [Sun, 8 Aug 2010 22:08:31 +0000 (01:08 +0300)]
Updated Romanian translation

13 years agomedia-export: Use file mtime as fallback
Jens Georg [Sat, 7 Aug 2010 15:44:00 +0000 (18:44 +0300)]
media-export: Use file mtime as fallback

13 years agomedia-export: Fix degrading database performance
Jens Georg [Sat, 7 Aug 2010 09:40:25 +0000 (12:40 +0300)]
media-export: Fix degrading database performance

With items being changed often the performance of the database could
decrease over time

13 years agomedia-export: Make MediaCache single-instance
Jens Georg [Wed, 28 Jul 2010 16:29:24 +0000 (18:29 +0200)]
media-export: Make MediaCache single-instance