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

14 years agomedia-export: Make virtual container support multiple levels
Jens Georg [Mon, 8 Feb 2010 12:35:04 +0000 (13:35 +0100)]
media-export: Make virtual container support multiple levels

This is used to implement sth. like "Albums by Artist"

14 years agomedia-export: Add virtual containers
Jens Georg [Mon, 8 Feb 2010 12:06:44 +0000 (13:06 +0100)]
media-export: Add virtual containers

The virtual containers are based on meta-data columns (Artist, Album, etc.)
and are generated on-the-fly from the database

14 years agomedia-db: Make SearchExpression translation public
Jens Georg [Sat, 30 Jan 2010 19:47:24 +0000 (20:47 +0100)]
media-db: Make SearchExpression translation public

14 years agomedia-export: Put auxiliary classes into own files
Jens Georg [Sat, 30 Jan 2010 19:17:38 +0000 (20:17 +0100)]
media-export: Put auxiliary classes into own files

14 years agomedia-db: Add missing return in callback.
Jens Georg [Sun, 7 Mar 2010 14:19:37 +0000 (15:19 +0100)]
media-db: Add missing return in callback.

This breaks XBox360 music browsing on debian unstable

14 years agomedia-db: Query object meta-data by search expression
Jens Georg [Sat, 30 Jan 2010 21:07:10 +0000 (22:07 +0100)]
media-db: Query object meta-data by search expression

14 years agomedia-db: Add possibilty for meta-data field query
Jens Georg [Fri, 1 Jan 2010 17:20:41 +0000 (18:20 +0100)]
media-db: Add possibilty for meta-data field query

14 years agomedia-db: Throw error on invalid search expression
Jens Georg [Sun, 7 Feb 2010 18:49:21 +0000 (19:49 +0100)]
media-db: Throw error on invalid search expression

14 years agomedia-db: Make upnp:artist map to dc:creator
Jens Georg [Sat, 30 Jan 2010 19:55:43 +0000 (20:55 +0100)]
media-db: Make upnp:artist map to dc:creator

14 years agomedia-db: Add upnp:album to searchable properties
Jens Georg [Sat, 30 Jan 2010 19:57:23 +0000 (20:57 +0100)]
media-db: Add upnp:album to searchable properties

14 years agomedia-db,media-export: Remove save_object
Jens Georg [Sun, 31 Jan 2010 16:04:47 +0000 (17:04 +0100)]
media-db,media-export: Remove save_object

14 years agomedia-db: Coding style fixes
Jens Georg [Sun, 31 Jan 2010 15:53:56 +0000 (16:53 +0100)]
media-db: Coding style fixes

14 years agomedia-db: Update documentation
Jens Georg [Sun, 31 Jan 2010 14:53:15 +0000 (15:53 +0100)]
media-db: Update documentation

14 years agomedia-db: Throw error on creation failure
Jens Georg [Sun, 31 Jan 2010 14:14:12 +0000 (15:14 +0100)]
media-db: Throw error on creation failure

14 years agomedia-db: Minor coding stlye fixes
Jens Georg [Sun, 31 Jan 2010 14:10:31 +0000 (15:10 +0100)]
media-db: Minor coding stlye fixes

14 years agomedia-db: Make Database.exec cancellable
Jens Georg [Sun, 31 Jan 2010 14:03:27 +0000 (15:03 +0100)]
media-db: Make Database.exec cancellable

14 years agomedia-db: Remove unused variable
Jens Georg [Sun, 31 Jan 2010 13:53:42 +0000 (14:53 +0100)]
media-db: Remove unused variable

14 years agomedia-db: Minor readability refactor
Jens Georg [Sun, 31 Jan 2010 13:53:25 +0000 (14:53 +0100)]
media-db: Minor readability refactor

14 years agomedia-db: Make clear we mean Rygel.Database
Jens Georg [Sun, 31 Jan 2010 13:46:49 +0000 (14:46 +0100)]
media-db: Make clear we mean Rygel.Database

14 years agomediathek: Minor style fix
Jens Georg [Sat, 30 Jan 2010 20:25:36 +0000 (21:25 +0100)]
mediathek: Minor style fix

14 years agomedia-db: Implement search for "res"
Jens Georg [Sat, 30 Jan 2010 20:19:18 +0000 (21:19 +0100)]
media-db: Implement search for "res"

14 years agomedia-db: MediaDBContainer mustn't know about DB internals
Jens Georg [Sat, 30 Jan 2010 20:43:35 +0000 (21:43 +0100)]
media-db: MediaDBContainer mustn't know about DB internals

14 years agomedia-db,media-export: Get rid of static initializers
Jens Georg [Sat, 30 Jan 2010 22:30:41 +0000 (23:30 +0100)]
media-db,media-export: Get rid of static initializers

14 years agomedia-db: Minor coding style fixes
Jens Georg [Sat, 30 Jan 2010 18:20:20 +0000 (19:20 +0100)]
media-db: Minor coding style fixes

14 years agotests: Catch the exact error
Zeeshan Ali (Khattak) [Sat, 13 Mar 2010 02:06:37 +0000 (04:06 +0200)]
tests: Catch the exact error

Latest valac spits a warning on this but thats OK since the warning is
bogus and this is already fixed in vala git master.

14 years agotests: Keep all classes private in HTTPItemURITest
Zeeshan Ali (Khattak) [Sat, 13 Mar 2010 02:05:00 +0000 (04:05 +0200)]
tests: Keep all classes private in HTTPItemURITest

14 years agotests: Add unit-test for HTTPResponse
Zeeshan Ali (Khattak) [Thu, 11 Mar 2010 15:02:56 +0000 (17:02 +0200)]
tests: Add unit-test for HTTPResponse

14 years agotests: Add copyright header to ItemURITest
Zeeshan Ali (Khattak) [Wed, 10 Mar 2010 16:06:58 +0000 (18:06 +0200)]
tests: Add copyright header to ItemURITest

14 years agocore: Update copyright header
Zeeshan Ali (Khattak) [Wed, 10 Mar 2010 16:06:32 +0000 (18:06 +0200)]
core: Update copyright header

14 years agotests: Skip the test if network is not available
Zeeshan Ali (Khattak) [Wed, 10 Mar 2010 15:54:17 +0000 (17:54 +0200)]
tests: Skip the test if network is not available

14 years agobuild: Provide direct link to Rygel's bugzilla
Zeeshan Ali (Khattak) [Wed, 10 Mar 2010 14:01:21 +0000 (16:01 +0200)]
build: Provide direct link to Rygel's bugzilla

14 years agobuild,tests: First unit test
Zeeshan Ali (Khattak) [Sun, 7 Mar 2010 19:48:17 +0000 (21:48 +0200)]
build,tests: First unit test

Add unit test for HTTPItemURI. This also includes the needed build setup.

14 years agocore: More self-consistent API for HTTPItemURI
Zeeshan Ali (Khattak) [Mon, 8 Mar 2010 16:55:01 +0000 (18:55 +0200)]
core: More self-consistent API for HTTPItemURI

Both constructors should take HTTPServer as argument and keep it's
reference since it's always needed in a method.

14 years agotracker: 'upload_dir' is nullable
Zeeshan Ali (Khattak) [Tue, 2 Mar 2010 13:32:04 +0000 (15:32 +0200)]
tracker: 'upload_dir' is nullable

We get the value for this from Environment.get_user_special_dir(),
dynamically and it could very well be null. Fixes a potential crash.

14 years agocore: Avoid 'this' before chaining-up to other constructors
Cyrille Chepelov [Mon, 1 Mar 2010 13:16:06 +0000 (14:16 +0100)]
core: Avoid 'this' before chaining-up to other constructors

Instead of using 'this' keyword (that will segfault as its being used
before chaining-up to other contstructor) just make copy_str_list()
static instead.

Signed-off-by: Cyrille Chepelov <cyrille.chepelov@keyconsulting.fr>
14 years agocore: Release announcement for 0.5.0 RYGEL_0_5_0
Zeeshan Ali (Khattak) [Tue, 23 Feb 2010 15:52:55 +0000 (17:52 +0200)]
core: Release announcement for 0.5.0

14 years agomedia-export: Cancel harvester before starting new one
Jens Georg [Sat, 20 Feb 2010 16:26:13 +0000 (17:26 +0100)]
media-export: Cancel harvester before starting new one

When uploading or changing files, multiple CHANGES_DONE event hints may be
sent. With this commit the already running harvester is cancelled and a
new one is started on this occasion.

14 years agomedia-export: Don't modify DB if harvester was cancelled
Jens Georg [Sat, 20 Feb 2010 16:25:33 +0000 (17:25 +0100)]
media-export: Don't modify DB if harvester was cancelled

14 years agomedia-export: Message & signal if harvesting not needed
Jens Georg [Sat, 20 Feb 2010 16:25:08 +0000 (17:25 +0100)]
media-export: Message & signal if harvesting not needed

Emit a console message and signal if file does not need harvesting.

14 years agomedia-export: Make harvester cancellable
Jens Georg [Sat, 20 Feb 2010 16:14:23 +0000 (17:14 +0100)]
media-export: Make harvester cancellable

14 years agocore: Fix desktop file
Andreas Henriksson [Sat, 20 Feb 2010 08:26:53 +0000 (09:26 +0100)]
core: Fix desktop file

Correct service name and add a comment.

14 years agotracker: Descriptive IDs for containers
Zeeshan Ali (Khattak) [Fri, 19 Feb 2010 15:55:18 +0000 (17:55 +0200)]
tracker: Descriptive IDs for containers

14 years agotracker: Tags & Years create their own IDs
Zeeshan Ali (Khattak) [Fri, 19 Feb 2010 15:53:40 +0000 (17:53 +0200)]
tracker: Tags & Years create their own IDs

14 years agotracker: No need to search for newly created item
Zeeshan Ali (Khattak) [Fri, 19 Feb 2010 15:26:30 +0000 (17:26 +0200)]
tracker: No need to search for newly created item

After creating the item we were searching for it only to find out it's
UPnP ID but now that we have a method to get the id given the URN (tracker
ID), we can avoid this search & therefore a D-Bus round-trip.

14 years agotracker: Add method for child ID creation from URN
Zeeshan Ali (Khattak) [Fri, 19 Feb 2010 15:13:36 +0000 (17:13 +0200)]
tracker: Add method for child ID creation from URN

14 years agotracker: Move add_item() to CategoryAllContainer
Zeeshan Ali (Khattak) [Fri, 19 Feb 2010 15:03:05 +0000 (17:03 +0200)]
tracker: Move add_item() to CategoryAllContainer

Move add_item implementation to CategoryAllContainer. The item was being
added to these containers in the end anyway so why not be honest and add
the item in the container for which the client sends the item addition
request.

14 years agotracker: Seperate class of "All" container
Zeeshan Ali (Khattak) [Fri, 19 Feb 2010 14:25:36 +0000 (16:25 +0200)]
tracker: Seperate class of "All" container

14 years agotracker: CategoryContainer creates "All" container
Zeeshan Ali (Khattak) [Fri, 19 Feb 2010 13:34:03 +0000 (15:34 +0200)]
tracker: CategoryContainer creates "All" container

Since "All" child is created/added by all category containers, why not
create/add it in the base CategoryContainer class?

14 years agocore: Refactor two new methods of ContentDirectory
Zeeshan Ali (Khattak) [Fri, 19 Feb 2010 12:30:00 +0000 (14:30 +0200)]
core: Refactor two new methods of ContentDirectory

Refactor get_transfer_progress_cb & stop_transfer_resource_cb methods of
ContentDirectory.

14 years agocore: Implement StopTransferResource action of CDS
Zeeshan Ali (Khattak) [Fri, 19 Feb 2010 12:17:12 +0000 (14:17 +0200)]
core: Implement StopTransferResource action of CDS

14 years agocore: ImportResource keeps its own Cancellable object
Zeeshan Ali (Khattak) [Fri, 19 Feb 2010 12:16:22 +0000 (14:16 +0200)]
core: ImportResource keeps its own Cancellable object

14 years agocore: Don't forget to signal completion in case of error
Zeeshan Ali (Khattak) [Thu, 18 Feb 2010 17:41:31 +0000 (19:41 +0200)]
core: Don't forget to signal completion in case of error

14 years agocore: Implement GetTransferProgress action of CDS
Zeeshan Ali (Khattak) [Thu, 18 Feb 2010 17:41:08 +0000 (19:41 +0200)]
core: Implement GetTransferProgress action of CDS

14 years agocore: Make transfer statistics public
Zeeshan Ali (Khattak) [Thu, 18 Feb 2010 17:47:03 +0000 (19:47 +0200)]
core: Make transfer statistics public

14 years agocore: Use enum to represent transfer status
Zeeshan Ali (Khattak) [Thu, 18 Feb 2010 17:38:24 +0000 (19:38 +0200)]
core: Use enum to represent transfer status

14 years agocore: Minor refactoring of ContentDirectory class
Zeeshan Ali (Khattak) [Thu, 18 Feb 2010 15:19:40 +0000 (17:19 +0200)]
core: Minor refactoring of ContentDirectory class

Keep private non-callback methods at the end of the class definition.

14 years agocore: Provide "TransferIDs" state variable
Zeeshan Ali (Khattak) [Thu, 18 Feb 2010 14:57:06 +0000 (16:57 +0200)]
core: Provide "TransferIDs" state variable

14 years agocore: ContentDirectory keeps a list of active imports
Zeeshan Ali (Khattak) [Thu, 18 Feb 2010 14:54:58 +0000 (16:54 +0200)]
core: ContentDirectory keeps a list of active imports

14 years agocore: Implement ImportResource action of CDS
Zeeshan Ali (Khattak) [Thu, 18 Feb 2010 13:34:43 +0000 (15:34 +0200)]
core: Implement ImportResource action of CDS

14 years agotracker: Refactor ItemCreation.run()
Zeeshan Ali (Khattak) [Wed, 17 Feb 2010 11:03:23 +0000 (13:03 +0200)]
tracker: Refactor ItemCreation.run()

14 years agotracker: Follow recommended way for item creation
Zeeshan Ali (Khattak) [Wed, 17 Feb 2010 10:48:59 +0000 (12:48 +0200)]
tracker: Follow recommended way for item creation

Follow the instructions on the following page to create new item:

http://live.gnome.org/Tracker/Discussion/DirectNotification (Skip to
"Example for a UPnP Server).

14 years agotracker: Keep "All" container as the first one in the list
Zeeshan Ali (Khattak) [Wed, 17 Feb 2010 10:38:59 +0000 (12:38 +0200)]
tracker: Keep "All" container as the first one in the list

This is to improve the performance of searches. If the items being
searched are all in the same category (e.g give me all songs from
Michael Jackson & Madona), they will all be present in "All" search
container and we can fetch them all using only one D-Bus method.

14 years agotracker: Bind Tracker1.Miner.IgnoreNextUpdate method
Zeeshan Ali (Khattak) [Wed, 17 Feb 2010 10:34:04 +0000 (12:34 +0200)]
tracker: Bind Tracker1.Miner.IgnoreNextUpdate method