profile/ivi/rygel.git
14 years agobuild: Correctly invoke gnome-autogen.sh
Zeeshan Ali (Khattak) [Sun, 18 Apr 2010 17:05:10 +0000 (20:05 +0300)]
build: Correctly invoke gnome-autogen.sh

14 years agobuild,l10n: Fix translation framework
Zeeshan Ali (Khattak) [Sat, 17 Apr 2010 23:38:52 +0000 (02:38 +0300)]
build,l10n: Fix translation framework

14 years agobuild: Use gnome-autogen.sh
Zeeshan Ali (Khattak) [Sat, 17 Apr 2010 23:56:34 +0000 (02:56 +0300)]
build: Use gnome-autogen.sh

14 years agoexternal: Set model description
Zeeshan Ali (Khattak) [Fri, 16 Apr 2010 16:49:32 +0000 (19:49 +0300)]
external: Set model description

This is done so that we can avoid infinite recursion against rygel-grilo,
i-e rygel exporting sources from rygel-grilo and rygel-grilo then
exporting them on D-Bus again and so on.

14 years agocore: Plugins be able to provide a model description
Zeeshan Ali (Khattak) [Fri, 16 Apr 2010 16:48:39 +0000 (19:48 +0300)]
core: Plugins be able to provide a model description

14 years agocore: Release log for 0.5.2 RYGEL_0_5_2
Zeeshan Ali (Khattak) [Wed, 14 Apr 2010 00:02:26 +0000 (03:02 +0300)]
core: Release log for 0.5.2

14 years agodata: Add 2 virtual folders to default user config
Zeeshan Ali (Khattak) [Wed, 14 Apr 2010 13:24:18 +0000 (16:24 +0300)]
data: Add 2 virtual folders to default user config

Add 'Albums' and 'Artists' virtual folders to default user configuration.
Also describe the config option in the comment a bit.

14 years agomedia-db: Fix upgrade from db v4 to v5
Jens Georg [Sat, 10 Apr 2010 19:24:22 +0000 (21:24 +0200)]
media-db: Fix upgrade from db v4 to v5

14 years agomedia-db: Fix problems introduced by upgrade bug
Jens Georg [Fri, 9 Apr 2010 22:27:03 +0000 (00:27 +0200)]
media-db: Fix problems introduced by upgrade bug

This patch checks if there is an UNIQUE constraint on the object_fk column
of meta_data and if not re-creates the table forcing a full re-index.

14 years agomedia-db: Fix upgrade from schema v3
Jens Georg [Fri, 9 Apr 2010 22:13:06 +0000 (00:13 +0200)]
media-db: Fix upgrade from schema v3

Two problems fixed in this patch:
  - The original upgrade from v3 to v4 skipped a UNIQUE constrained which
    lead multiple metadata entries for a single file
  - the database was not upgraded to v5 if upgraded from v3, only to v4

14 years agomedia-export: Refactor search method
Jens Georg [Wed, 7 Apr 2010 01:04:08 +0000 (03:04 +0200)]
media-export: Refactor search method

Split large search implementation into smaller pieces. Should improve
readability of code. Also updates documentation.

14 years agomedia-export: Fix browsing of virtual containers
Jens Georg [Mon, 29 Mar 2010 17:41:49 +0000 (19:41 +0200)]
media-export: Fix browsing of virtual containers

Make virtual container parent of its children. Some picky control points
might not have shown the content of the virtual folders defined in
configuration unless this is the case.

14 years agomedia-export: Clean-up search method
Jens Georg [Mon, 29 Mar 2010 16:42:59 +0000 (18:42 +0200)]
media-export: Clean-up search method

14 years agomedia-export: Guess name of virtual container
Jens Georg [Mon, 29 Mar 2010 16:41:54 +0000 (18:41 +0200)]
media-export: Guess name of virtual container

If no title is given the virtual containter tries now to guess its own
name.

14 years agomedia-db: Update coding style
Jens Georg [Mon, 5 Apr 2010 20:18:17 +0000 (22:18 +0200)]
media-db: Update coding style

14 years agocore: Make parent_ref a property
Jens Georg [Mon, 5 Apr 2010 20:05:04 +0000 (22:05 +0200)]
core: Make parent_ref a property

This automatically sets parent with parent_ref

14 years agomedia-db: Cleanup SQL strings
Jens Georg [Mon, 5 Apr 2010 19:15:22 +0000 (21:15 +0200)]
media-db: Cleanup SQL strings

14 years agotests: Coverage for new subtitle APIs
Zeeshan Ali (Khattak) [Tue, 13 Apr 2010 11:25:54 +0000 (14:25 +0300)]
tests: Coverage for new subtitle APIs

14 years agocore: ContentDirectory callbacks don't need to be virtual
Zeeshan Ali (Khattak) [Tue, 23 Feb 2010 12:38:47 +0000 (14:38 +0200)]
core: ContentDirectory callbacks don't need to be virtual

14 years agocore: Fix a potential crasher bug
Zeeshan Ali (Khattak) [Mon, 12 Apr 2010 15:45:47 +0000 (18:45 +0300)]
core: Fix a potential crasher bug

We were assuming that the 'CreateObject' action will always contain at
least one item in the DIDL-Lite XML but that might not be the case. The
client may very well try to only create container objects.

This fixes crash against DLNA CTT test case 7.3.118.2.3.

14 years agobuild,core,plugins: Require & adapt to gupnp-av 0.5.5
Zeeshan Ali (Khattak) [Sat, 10 Apr 2010 00:47:39 +0000 (03:47 +0300)]
build,core,plugins: Require & adapt to gupnp-av 0.5.5

14 years agobuild: Require latest vala release (0.8.0)
Zeeshan Ali (Khattak) [Sat, 10 Apr 2010 00:47:17 +0000 (03:47 +0300)]
build: Require latest vala release (0.8.0)

14 years agocore: Micro indentation fix
Zeeshan Ali (Khattak) [Wed, 7 Apr 2010 23:27:24 +0000 (02:27 +0300)]
core: Micro indentation fix

14 years agocore: Add basic support for subtitles
Andreas Henriksson [Wed, 7 Apr 2010 23:19:47 +0000 (02:19 +0300)]
core: Add basic support for subtitles

For each video item, we check if there is a file in the same directory
with the same name but extension "srt" and if so, we serve it using
Samsung's custom DIDL-Lite and HTTP extensions.

Co-author & reviewer: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>

14 years agobuild: Require latest gupnp-vala bindings
Zeeshan Ali (Khattak) [Thu, 1 Apr 2010 22:57:01 +0000 (01:57 +0300)]
build: Require latest gupnp-vala bindings

14 years agocore: Serve special description to Xbox
Zeeshan Ali (Khattak) [Wed, 31 Mar 2010 19:22:51 +0000 (22:22 +0300)]
core: Serve special description to Xbox

14 years agocore: Minor refactor of some RootDeviceFactory code
Zeeshan Ali (Khattak) [Wed, 31 Mar 2010 19:14:18 +0000 (22:14 +0300)]
core: Minor refactor of some RootDeviceFactory code

14 years agocore: Constant for ContentDirectory v1
Zeeshan Ali (Khattak) [Sun, 28 Mar 2010 01:40:10 +0000 (04:40 +0300)]
core: Constant for ContentDirectory v1

14 years agobuild: Require gupnp >= 0.13.3
Zeeshan Ali (Khattak) [Sun, 28 Mar 2010 01:37:39 +0000 (04:37 +0300)]
build: Require gupnp >= 0.13.3

14 years agocore: It's 'Xbox' not 'XBox'
Zeeshan Ali (Khattak) [Fri, 26 Mar 2010 17:12:14 +0000 (19:12 +0200)]
core: It's 'Xbox' not 'XBox'

14 years agocore: Keep RootDeviceFactory internal
Zeeshan Ali (Khattak) [Fri, 26 Mar 2010 17:10:06 +0000 (19:10 +0200)]
core: Keep RootDeviceFactory internal

14 years agocore: Micro coding-style fix
Zeeshan Ali (Khattak) [Thu, 25 Mar 2010 11:10:41 +0000 (13:10 +0200)]
core: Micro coding-style fix

14 years agocore: Cleaner XBoxHacks construction API
Zeeshan Ali (Khattak) [Wed, 24 Mar 2010 16:31:05 +0000 (18:31 +0200)]
core: Cleaner XBoxHacks construction API

Now XBoxHacks is created specifically for an action and errors out if
action's user-agent isn't XBox.

14 years agocore: Micro coding-style fixes
Zeeshan Ali (Khattak) [Wed, 24 Mar 2010 16:21:36 +0000 (18:21 +0200)]
core: Micro coding-style fixes

14 years agocore: Make use of reference passing in XBoxHacks API
Zeeshan Ali (Khattak) [Wed, 24 Mar 2010 16:20:18 +0000 (18:20 +0200)]
core: Make use of reference passing in XBoxHacks API

14 years agocore: Move older XBox hacks to new relavent class
Zeeshan Ali (Khattak) [Wed, 24 Mar 2010 01:21:48 +0000 (03:21 +0200)]
core: Move older XBox hacks to new relavent class

14 years agocore: Apply Xbox hacks on search results as well
Zeeshan Ali (Khattak) [Wed, 24 Mar 2010 01:15:37 +0000 (03:15 +0200)]
core: Apply Xbox hacks on search results as well

14 years agocore: Add XBox hacks
Zeeshan Ali (Khattak) [Wed, 24 Mar 2010 01:07:53 +0000 (03:07 +0200)]
core: Add XBox hacks

If the "User-Agent" header in the request contains "XBox", we assume the
client is Xbox. The hacks are currently simple: we just override the
mime-type of the item so that XBox likes it better.

14 years agocore,media-export,tracker: Specific class for photos
Zeeshan Ali (Khattak) [Tue, 23 Mar 2010 15:14:53 +0000 (17:14 +0200)]
core,media-export,tracker: Specific class for photos

Most images rygel will deal with are photos anyway and XBox only deals
with this specific class so lets just use that instead of generic 'image'.

14 years agomedia-export: Minor refactor
Zeeshan Ali (Khattak) [Sun, 28 Mar 2010 19:01:15 +0000 (22:01 +0300)]
media-export: Minor refactor

14 years agomedia-export: Small refactor
Jens Georg [Sun, 28 Mar 2010 12:33:28 +0000 (14:33 +0200)]
media-export: Small refactor

14 years agomedia-export: Coding style fix
Jens Georg [Sun, 28 Mar 2010 11:51:53 +0000 (13:51 +0200)]
media-export: Coding style fix

14 years agomedia-export: Use ref for argument modification
Jens Georg [Sun, 28 Mar 2010 11:57:15 +0000 (13:57 +0200)]
media-export: Use ref for argument modification

14 years agomedia-export: Catch previously uncaught exceptions
Jens Georg [Sat, 27 Mar 2010 17:04:14 +0000 (18:04 +0100)]
media-export: Catch previously uncaught exceptions

14 years agomedia-export: Vala bug 568972 is fixed since 0.7.9
Jens Georg [Sat, 27 Mar 2010 16:54:46 +0000 (17:54 +0100)]
media-export: Vala bug 568972 is fixed since 0.7.9

14 years agomedia-export: Fix error with vala-head
Jens Georg [Sat, 27 Mar 2010 16:49:10 +0000 (17:49 +0100)]
media-export: Fix error with vala-head

14 years agodata: Have SCPD include spec version
Jens Georg [Sat, 20 Mar 2010 22:29:54 +0000 (23:29 +0100)]
data: Have SCPD include spec version

This version is not of the MediaServer but "UPnP Device Architecture".

14 years agocore: Buffer 65K instead of 4K
Zeeshan Ali (Khattak) [Tue, 23 Mar 2010 13:17:21 +0000 (15:17 +0200)]
core: Buffer 65K instead of 4K

Bigger buffer means less cpu usage and therefore better battery life.

14 years agocore: Content-Length was off by 1 byte
Zeeshan Ali (Khattak) [Tue, 23 Mar 2010 12:31:25 +0000 (14:31 +0200)]
core: Content-Length was off by 1 byte

14 years agocore: Minor refactor
Zeeshan Ali (Khattak) [Tue, 23 Mar 2010 12:22:27 +0000 (14:22 +0200)]
core: Minor refactor

14 years agocore: Removed unneeded conversions to double
Zeeshan Ali (Khattak) [Tue, 23 Mar 2010 01:00:55 +0000 (03:00 +0200)]
core: Removed unneeded conversions to double

14 years agomedia-export: Small refactor
Jens Georg [Sun, 14 Mar 2010 10:09:30 +0000 (11:09 +0100)]
media-export: Small refactor

14 years agocore: Minor coding style fixes
Jens Georg [Sun, 21 Mar 2010 01:15:28 +0000 (02:15 +0100)]
core: Minor coding style fixes

14 years agomedia-export: Coding style fixes
Jens Georg [Sun, 14 Mar 2010 11:16:43 +0000 (12:16 +0100)]
media-export: Coding style fixes

14 years agomedia-export: Add some checks for user-provided virtual ids
Jens Georg [Sun, 14 Mar 2010 11:13:52 +0000 (12:13 +0100)]
media-export: Add some checks for user-provided virtual ids

14 years agomedia-db: Don't crash on inconsitent database
Jens Georg [Sun, 14 Mar 2010 10:31:26 +0000 (11:31 +0100)]
media-db: Don't crash on inconsitent database

14 years agomedia-export: Properly fill child-count on virtual containers
Jens Georg [Mon, 8 Feb 2010 15:44:15 +0000 (16:44 +0100)]
media-export: Properly fill child-count on virtual containers

14 years agomedia-export: Fix saving id filtering on startup
Jens Georg [Mon, 8 Feb 2010 15:43:47 +0000 (16:43 +0100)]
media-export: Fix saving id filtering on startup

14 years agomedia-export: Hook up virtual folders to root folder
Jens Georg [Mon, 8 Feb 2010 14:01:13 +0000 (15:01 +0100)]
media-export: Hook up virtual folders to root folder

14 years agomedia-export: Simplify virtual folder parsing
Jens Georg [Sun, 14 Mar 2010 10:01:40 +0000 (11:01 +0100)]
media-export: Simplify virtual folder parsing

Virtual folders now contain the complete hierarchy from the beginning. The
format of the virtual folder definition has changed to use ? as
placeholder; also the complete hierarchy has to be defined before hand.

Example: virtual-folder:dc:date,?,upnp:artist,?,upnp:album,?

Will present a hierarchy that let's you browse by date, then by artist who
did something in that year and then by artist.

14 years agomedia-db: null search expression is allowed
Jens Georg [Fri, 12 Mar 2010 22:06:05 +0000 (23:06 +0100)]
media-db: null search expression is allowed

14 years agomedia-export: Uri-escape meta-data fields
Jens Georg [Fri, 12 Mar 2010 21:52:47 +0000 (22:52 +0100)]
media-export: Uri-escape meta-data fields

Uri-escape the fields in case they contain a ",". This was already
documented but not implemented.

14 years agocore: Fix search expression parsing
Jens Georg [Fri, 12 Mar 2010 21:11:28 +0000 (22:11 +0100)]
core: Fix search expression parsing

GScanner.input_text needs the byte count not the character count. This
caused problems parsing the search expression if a string contained
characters not within the original latin1 range.

14 years agomedia-export: Fix crash if the virtual id is not known
Jens Georg [Fri, 5 Mar 2010 18:46:32 +0000 (19:46 +0100)]
media-export: Fix crash if the virtual id is not known

14 years agomedia-export: Fix crash on single-level query containers
Jens Georg [Fri, 5 Mar 2010 18:16:26 +0000 (19:16 +0100)]
media-export: Fix crash on single-level query containers

14 years agomedia-export: Workaround XBox ID length limit
Jens Georg [Sat, 2 Jan 2010 20:10:29 +0000 (21:10 +0100)]
media-export: Workaround XBox ID length limit

XBox 360 seems to have a 64 character ID limit.

14 years agomediathek: Fix content type to video/x-ms-wmv
Jens Georg [Tue, 29 Dec 2009 18:03:01 +0000 (19:03 +0100)]
mediathek: Fix content type to video/x-ms-wmv

14 years agocore: Add WMV transcoder
Jens Georg [Tue, 29 Dec 2009 13:51:09 +0000 (14:51 +0100)]
core: Add WMV transcoder

14 years agomedia-export: Map search to virtual container
Jens Georg [Mon, 8 Feb 2010 12:35:45 +0000 (13:35 +0100)]
media-export: Map search to virtual container

14 years agomedia-export: Implement special searches for XBox
Jens Georg [Mon, 8 Feb 2010 12:07:35 +0000 (13:07 +0100)]
media-export: Implement special searches for XBox

Use virtual containers to implement special searches for XBox.

14 years agocore: Map special folders of XBox360 to root folder
Jens Georg [Mon, 8 Mar 2010 08:57:18 +0000 (09:57 +0100)]
core: Map special folders of XBox360 to root folder

14 years agocore: Re-Add X_MS_MediaReceiverRegistrar service
Jens Georg [Mon, 8 Mar 2010 08:52:36 +0000 (09:52 +0100)]
core: Re-Add X_MS_MediaReceiverRegistrar service

This serice is needed for XBox360

14 years agomedia-export: Make object-factory hand out virtual containers
Zeeshan Ali (Khattak) [Mon, 22 Mar 2010 14:37:53 +0000 (16:37 +0200)]
media-export: Make object-factory hand out virtual containers

14 years agoRevert "media-db: Make SearchExpression translation public"
Jens Georg [Sat, 30 Jan 2010 21:50:30 +0000 (22:50 +0100)]
Revert "media-db: Make SearchExpression translation public"

This reverts commit ad51eb8e10838c9ce9b6b74b5dc515e75e63bdcd.

Conflicts:

src/rygel/rygel-media-db.vala

14 years agomedia-export: Refactor & clean-up
Zeeshan Ali (Khattak) [Mon, 22 Mar 2010 13:54:39 +0000 (15:54 +0200)]
media-export: Refactor & clean-up

14 years agomedia-export: Don't deal with database internals
Jens Georg [Sat, 30 Jan 2010 21:25:06 +0000 (22:25 +0100)]
media-export: Don't deal with database internals

MediaExportQueryContainer should not have access to DB internals.

14 years agomedia-export: Use get_objects_by_search_expression
Jens Georg [Sat, 30 Jan 2010 20:54:48 +0000 (21:54 +0100)]
media-export: Use get_objects_by_search_expression

14 years agotests: Check for Content-Range format
Zeeshan Ali (Khattak) [Mon, 22 Mar 2010 13:34:21 +0000 (15:34 +0200)]
tests: Check for Content-Range format

14 years agotests: Keep check methods private
Zeeshan Ali (Khattak) [Mon, 22 Mar 2010 13:33:57 +0000 (15:33 +0200)]
tests: Keep check methods private

14 years agotests: Correct check for Content-Length header
Zeeshan Ali (Khattak) [Sun, 21 Mar 2010 00:21:50 +0000 (02:21 +0200)]
tests: Correct check for Content-Length header

14 years agocore: Fix Content-Length header for partial requests
Jens Georg [Sat, 20 Mar 2010 13:18:49 +0000 (14:18 +0100)]
core: Fix Content-Length header for partial requests

14 years agocore: Fix build against vala git master
Jens Georg [Sat, 20 Mar 2010 16:56:47 +0000 (17:56 +0100)]
core: Fix build against vala git master

This does not affect build against vala 0.7.10.

14 years agomedia-db: Fix deletion of containers
Jens Georg [Sat, 20 Mar 2010 14:46:11 +0000 (15:46 +0100)]
media-db: Fix deletion of containers

Use SQL IN keyword to actually delete the list of descendants, not the
first one only.

14 years agotests: Unit test for HTTPByteSeek
Zeeshan Ali (Khattak) [Fri, 19 Mar 2010 18:24:57 +0000 (20:24 +0200)]
tests: Unit test for HTTPByteSeek

14 years agocore: No need to pass query to HTTPRequest
Zeeshan Ali (Khattak) [Fri, 19 Mar 2010 13:18:19 +0000 (15:18 +0200)]
core: No need to pass query to HTTPRequest

We don't use the HTTP query anymore so is no need to pass it around.

14 years agotests: Test LiveResponse cancellation by client
Zeeshan Ali (Khattak) [Thu, 18 Mar 2010 12:37:20 +0000 (14:37 +0200)]
tests: Test LiveResponse cancellation by client

14 years agocore: Message needs to be unpaused on completion
Zeeshan Ali (Khattak) [Wed, 17 Mar 2010 15:42:31 +0000 (17:42 +0200)]
core: Message needs to be unpaused on completion

Soup.Message needs to be unpaused on completion.

14 years agotests: Disable warnings from valac for unit tests
Zeeshan Ali (Khattak) [Wed, 17 Mar 2010 14:24:43 +0000 (16:24 +0200)]
tests: Disable warnings from valac for unit tests

Most of the warnings are completely bogus in case of unit tests (e.g unused
symbols) and it only makes the build output look very ugly.

14 years agocore: More reliable way to wait for idle handlers
Zeeshan Ali (Khattak) [Wed, 17 Mar 2010 14:19:45 +0000 (16:19 +0200)]
core: More reliable way to wait for idle handlers

Instead of keeping the ID of the last installed idle handler and then
removing it at the end, just add a new idle hander to end the response so
the response is ended after all the idle handlers have been called. This
fixes the issue of LiveResponse not sending all the bytes to the client
before closing the socket on EOS.

14 years agotests: Bring back valac's '-g' flag
Zeeshan Ali (Khattak) [Tue, 16 Mar 2010 18:20:42 +0000 (20:20 +0200)]
tests: Bring back valac's '-g' flag

14 years agotests: Simpler (hopefully) build rules
Zeeshan Ali (Khattak) [Tue, 16 Mar 2010 18:17:04 +0000 (20:17 +0200)]
tests: Simpler (hopefully) build rules

Use of internal libs seems like a complicated approach than it first
seems, better just use more symlinks (with different names) instead.

14 years agotests: Unit test for LiveResponse
Zeeshan Ali (Khattak) [Tue, 16 Mar 2010 16:35:18 +0000 (18:35 +0200)]
tests: Unit test for LiveResponse

14 years agocore: Micro coding-style fix
Zeeshan Ali (Khattak) [Tue, 16 Mar 2010 14:30:06 +0000 (16:30 +0200)]
core: Micro coding-style fix

14 years agocore: LiveResponseError -> GstError
Zeeshan Ali (Khattak) [Tue, 16 Mar 2010 14:24:59 +0000 (16:24 +0200)]
core: LiveResponseError -> GstError

Rename LiveResponseError to GstError and move it to GstUtils module.

14 years agotests: One LDADD for all test applications
Zeeshan Ali (Khattak) [Mon, 15 Mar 2010 14:39:48 +0000 (16:39 +0200)]
tests: One LDADD for all test applications

14 years agomedia-export: Fix previous commit
Zeeshan Ali (Khattak) [Mon, 15 Mar 2010 13:16:39 +0000 (15:16 +0200)]
media-export: Fix previous commit

Renamed a error variable in the previous commit but forgot to update its
usage.

14 years agocore: Coding-style fixes
Zeeshan Ali (Khattak) [Sun, 14 Mar 2010 23:21:18 +0000 (01:21 +0200)]
core: Coding-style fixes

14 years agomedia-export: Use constructor to create media database
Jens Georg [Mon, 8 Feb 2010 10:14:48 +0000 (11:14 +0100)]
media-export: Use constructor to create media database

14 years agomedia-export: Minor refactoring
Jens Georg [Sat, 2 Jan 2010 20:13:23 +0000 (21:13 +0100)]
media-export: Minor refactoring

14 years agomedia-export: Fix SearchExpression generation
Jens Georg [Sat, 2 Jan 2010 19:58:07 +0000 (20:58 +0100)]
media-export: Fix SearchExpression generation