profile/ivi/rygel.git
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

13 years agomedia-export: Remove duplicate code
Jens Georg [Sun, 25 Jul 2010 11:35:00 +0000 (14:35 +0300)]
media-export: Remove duplicate code

13 years agomedia-export: Fix coding-style
Jens Georg [Sun, 25 Jul 2010 11:32:07 +0000 (14:32 +0300)]
media-export: Fix coding-style

13 years agomedia-export: Remove useless massive database call
Jens Georg [Sun, 25 Jul 2010 11:22:32 +0000 (14:22 +0300)]
media-export: Remove useless massive database call

No need to get the id from the container and then look it up in the
database to create another instance of the container. Just use the
existing container.

13 years agomedia-export: Unify query limit modification
Jens Georg [Sun, 25 Jul 2010 11:01:56 +0000 (14:01 +0300)]
media-export: Unify query limit modification

UPnP uses different limit semantics than SQLite. The mapping was done
twice in some cases as it was done in the calling function and the
called function. Now it is always done within MediaCache.

13 years agomedia-export: Update docs
Jens Georg [Sun, 25 Jul 2010 10:25:18 +0000 (13:25 +0300)]
media-export: Update docs

13 years agomedia-export: Small refactor
Jens Georg [Sun, 25 Jul 2010 10:21:25 +0000 (13:21 +0300)]
media-export: Small refactor

13 years agomedia-export: Move SQL statements into factory
Jens Georg [Sat, 24 Jul 2010 18:18:49 +0000 (21:18 +0300)]
media-export: Move SQL statements into factory

Seperate the textual SQL stuff from the implementation.

Could be used to exchange the backing database, but currently only done
to make the MediaCache class less cluttered.

13 years agomedia-export: Use correct namespace
Jens Georg [Sat, 24 Jul 2010 18:26:05 +0000 (21:26 +0300)]
media-export: Use correct namespace

Move some left-over from code move into correct namespace

13 years agomedia-export: Make item creation more robust
Jens Georg [Sat, 24 Jul 2010 16:53:33 +0000 (19:53 +0300)]
media-export: Make item creation more robust

 - Use the same list of columns in every query dealing with items
 - Add an enum for the column instead of using the number directly

This will hopefully protect against problems that arised before when
modifying the query only in one place but using the same function on the
resulting statement.

13 years agoDelete non-existent file in POTFILES.in
Claude Paroz [Fri, 6 Aug 2010 18:04:36 +0000 (20:04 +0200)]
Delete non-existent file in POTFILES.in

13 years agotracker: Don't use Tracker's logo as icon
Zeeshan Ali (Khattak) [Fri, 6 Aug 2010 15:16:15 +0000 (18:16 +0300)]
tracker: Don't use Tracker's logo as icon

13 years agomedia-export: Disable in favor of Tracker plugin
Zeeshan Ali (Khattak) [Fri, 6 Aug 2010 15:06:32 +0000 (18:06 +0300)]
media-export: Disable in favor of Tracker plugin

If user have Tracker installed, we really should make use of that. This
change only disables the plugin's exposure over UPnP. We really should
cancel all metadata harvesting if plugin is disabled and viceversa.

13 years agoi18n: Unmark deleted file for translation
Zeeshan Ali (Khattak) [Fri, 6 Aug 2010 13:29:27 +0000 (16:29 +0300)]
i18n: Unmark deleted file for translation

13 years agoAdded ta translation
drtv [Fri, 6 Aug 2010 14:39:53 +0000 (20:09 +0530)]
Added ta translation

13 years agodata: Add forgotten JPEG icons
Zeeshan Ali (Khattak) [Fri, 6 Aug 2010 12:27:45 +0000 (15:27 +0300)]
data: Add forgotten JPEG icons

13 years agocore: Only offer time seeking if duration is known
Zeeshan Ali (Khattak) [Thu, 5 Aug 2010 21:05:43 +0000 (00:05 +0300)]
core: Only offer time seeking if duration is known

This satisfies DLNA requirement 7.3.26.3.

13 years agotracker: Ignore duration of '0'
Zeeshan Ali (Khattak) [Thu, 5 Aug 2010 21:03:58 +0000 (00:03 +0300)]
tracker: Ignore duration of '0'

13 years agocore: Don't transcode to different item class
Zeeshan Ali (Khattak) [Thu, 5 Aug 2010 16:35:20 +0000 (19:35 +0300)]
core: Don't transcode to different item class

Don't offer transcoding from video to audio and viceversa. This makes
sense anyway, reduces network traffic and (last but not the least)
satisfies DLNA (7.3.25.1).

13 years agomedia-export: Minor coding style fix
Jens Georg [Fri, 30 Jul 2010 16:35:13 +0000 (18:35 +0200)]
media-export: Minor coding style fix

13 years agomedia-export: Try to prevent crash when removing
Jens Georg [Sat, 24 Jul 2010 20:29:38 +0000 (23:29 +0300)]
media-export: Try to prevent crash when removing

When uri is removed while harvesting, it could lead to a crash. now
harvesting is cancelled before removing the uri.

13 years agomedia-export: Remove unused "using"
Jens Georg [Sun, 25 Jul 2010 10:39:43 +0000 (13:39 +0300)]
media-export: Remove unused "using"

13 years agomedia-export: Remove WriteableContainer
Jens Georg [Sun, 25 Jul 2010 11:52:04 +0000 (14:52 +0300)]
media-export: Remove WriteableContainer

Functionality has been moved to DBContainer

13 years agogit: Update .gitignore
Jens Georg [Thu, 29 Jul 2010 22:13:11 +0000 (00:13 +0200)]
git: Update .gitignore

13 years agomedia-export: Extract embedded album art
Jens Georg [Sat, 24 Jul 2010 20:19:03 +0000 (23:19 +0300)]
media-export: Extract embedded album art

13 years agomedia-export: Only query for non-empty meta-data
Jens Georg [Sat, 24 Jul 2010 17:36:09 +0000 (20:36 +0300)]
media-export: Only query for non-empty meta-data

Previously a null check was in place in every function using this. Now
the database filters the null columns itself.

13 years agomedia-export: Remove unused arguments
Jens Georg [Sat, 24 Jul 2010 17:04:33 +0000 (20:04 +0300)]
media-export: Remove unused arguments

13 years agomedia-export: Remove factory base class
Jens Georg [Sat, 24 Jul 2010 16:31:07 +0000 (19:31 +0300)]
media-export: Remove factory base class

13 years agoexternal: Handle AlbumArt property
Jens Georg [Sat, 24 Jul 2010 16:01:03 +0000 (19:01 +0300)]
external: Handle AlbumArt property

13 years agotracker,external: Handle genre
Jens Georg [Sat, 24 Jul 2010 15:20:10 +0000 (18:20 +0300)]
tracker,external: Handle genre

13 years agomedia-export: Support genre tag
Jens Georg [Sat, 24 Jul 2010 13:23:36 +0000 (16:23 +0300)]
media-export: Support genre tag

13 years agocore: Add genre to MediaItem and DIDL
Jens Georg [Sat, 24 Jul 2010 12:23:47 +0000 (15:23 +0300)]
core: Add genre to MediaItem and DIDL

13 years agomedia-export: Handle null SearchExpression
Jens Georg [Wed, 4 Aug 2010 16:45:38 +0000 (19:45 +0300)]
media-export: Handle null SearchExpression

Let the database to the dirty work

13 years agomedia-export: Correctly use null SearchExpression
Jens Georg [Wed, 4 Aug 2010 16:23:13 +0000 (19:23 +0300)]
media-export: Correctly use null SearchExpression

QueryContainers are based on searches so if a null search expression is
passed the container's own search expression which is constructed from
the folder description needs to be used.

13 years agocore: Refactor default icon addition code
Zeeshan Ali (Khattak) [Thu, 5 Aug 2010 14:17:57 +0000 (17:17 +0300)]
core: Refactor default icon addition code