profile/ivi/rygel.git
14 years agomedia-export: Catch additional database errors
Jens Georg [Fri, 14 Aug 2009 19:35:17 +0000 (21:35 +0200)]
media-export: Catch additional database errors

14 years agocore: Handle more database error cases
Jens Georg [Fri, 14 Aug 2009 19:29:32 +0000 (21:29 +0200)]
core: Handle more database error cases

14 years agomedia-export: Use null container for Harvesting
Jens Georg [Fri, 14 Aug 2009 18:58:29 +0000 (20:58 +0200)]
media-export: Use null container for Harvesting

14 years agomedia-export: Update documentation
Jens Georg [Wed, 12 Aug 2009 11:19:10 +0000 (13:19 +0200)]
media-export: Update documentation

14 years agocore, media-export: Handle invalid database files
Jens Georg [Wed, 12 Aug 2009 11:11:30 +0000 (13:11 +0200)]
core, media-export: Handle invalid database files

This dummy container is used if the database file
cannot be opened.

14 years agomedia-export: avoid crash if unknown file is found
Jens Georg [Tue, 11 Aug 2009 15:54:29 +0000 (17:54 +0200)]
media-export: avoid crash if unknown file is found

Reported on IRC by "fatal" (Andreas Henriksson)

14 years agomedia-export,mediathek: Root-Container-Singleton
Jens Georg [Mon, 27 Jul 2009 20:49:48 +0000 (22:49 +0200)]
media-export,mediathek: Root-Container-Singleton

Use the same root-container on every interface device

14 years agocore: fix #588034
Jens Georg [Wed, 8 Jul 2009 10:25:30 +0000 (12:25 +0200)]
core: fix #588034

14 years agocore: don't delete root container when in db
Jens Georg [Sun, 5 Jul 2009 14:06:19 +0000 (16:06 +0200)]
core: don't delete root container when in db

14 years agomedia-export: remove harvester if done harvesting
Jens Georg [Sun, 5 Jul 2009 12:42:02 +0000 (14:42 +0200)]
media-export: remove harvester if done harvesting

14 years agomedia-export: do file type query async
Jens Georg [Sun, 5 Jul 2009 12:36:21 +0000 (14:36 +0200)]
media-export: do file type query async

14 years agomedia-export: update changed files, not re-add
Jens Georg [Sun, 5 Jul 2009 12:22:06 +0000 (14:22 +0200)]
media-export: update changed files, not re-add

14 years agomedia-export: Notify parent container on removal
Jens Georg [Sun, 5 Jul 2009 11:39:55 +0000 (13:39 +0200)]
media-export: Notify parent container on removal

14 years agomedia-export: Add root container to database
Jens Georg [Sun, 5 Jul 2009 11:33:21 +0000 (13:33 +0200)]
media-export: Add root container to database

This is necessary to allow MediaItems directly below the root container

14 years agocore: Add check if no parent exists
Jens Georg [Sun, 5 Jul 2009 11:13:26 +0000 (13:13 +0200)]
core: Add check if no parent exists

14 years agomedia-export: delete gone directories on new start
Jens Georg [Mon, 29 Jun 2009 20:26:09 +0000 (22:26 +0200)]
media-export: delete gone directories on new start

14 years agocore: Add function to get list of child ids
Jens Georg [Sun, 28 Jun 2009 19:02:41 +0000 (21:02 +0200)]
core: Add function to get list of child ids

14 years agocore: Add timestamp to exists function
Jens Georg [Sun, 28 Jun 2009 19:01:58 +0000 (21:01 +0200)]
core: Add timestamp to exists function

14 years agomedia-export: Add mtime of object into database
Jens Georg [Sun, 28 Jun 2009 01:46:43 +0000 (03:46 +0200)]
media-export: Add mtime of object into database

14 years agocore: add timestamp to MediaObject
Jens Georg [Sun, 28 Jun 2009 01:46:17 +0000 (03:46 +0200)]
core: add timestamp to MediaObject

14 years agocore: add update methods
Jens Georg [Sun, 28 Jun 2009 01:21:48 +0000 (03:21 +0200)]
core: add update methods

14 years agocore: change table key relationships
Jens Georg [Sun, 28 Jun 2009 01:00:57 +0000 (03:00 +0200)]
core: change table key relationships

14 years agomedia-export: react on deletion of files
Jens Georg [Sun, 28 Jun 2009 00:09:09 +0000 (02:09 +0200)]
media-export: react on deletion of files

14 years agocore: add deletion of items to media-db
Jens Georg [Sun, 28 Jun 2009 00:06:35 +0000 (02:06 +0200)]
core: add deletion of items to media-db

14 years agomedia-export: Add uri to container objects
Jens Georg [Sat, 27 Jun 2009 23:22:00 +0000 (01:22 +0200)]
media-export: Add uri to container objects

14 years agomedia-export: harvest newly added files
Jens Georg [Sat, 27 Jun 2009 01:24:13 +0000 (03:24 +0200)]
media-export: harvest newly added files

14 years agomedia-export: hook up file monitor
Jens Georg [Sat, 27 Jun 2009 01:04:01 +0000 (03:04 +0200)]
media-export: hook up file monitor

14 years agomedia-export: Add recursive file monitor
Jens Georg [Sat, 27 Jun 2009 00:47:52 +0000 (02:47 +0200)]
media-export: Add recursive file monitor

14 years agocore: add some documentation
Jens Georg [Fri, 26 Jun 2009 22:23:13 +0000 (00:23 +0200)]
core: add some documentation

14 years agocore,media-export: MediaDB name is just a name
Jens Georg [Fri, 26 Jun 2009 22:13:29 +0000 (00:13 +0200)]
core,media-export: MediaDB name is just a name

MediaDB will decide about the file name itself, normally

user_cache_dir/prgname/name.db

14 years agocore: refine sorting of elements
Jens Georg [Fri, 26 Jun 2009 22:04:34 +0000 (00:04 +0200)]
core: refine sorting of elements

14 years agocore: Expect 'jpeg' extension for thumbnail files
Zeeshan Ali (Khattak) [Wed, 9 Sep 2009 13:24:31 +0000 (16:24 +0300)]
core: Expect 'jpeg' extension for thumbnail files

14 years agocore,plugins: Simpler way to provide thumbnails
Zeeshan Ali (Khattak) [Tue, 8 Sep 2009 16:11:42 +0000 (19:11 +0300)]
core,plugins: Simpler way to provide thumbnails

Provide a method to add URIs to MediaItem, using which the plugin
can also provide a thumbnail. If no thumbnail is provided, Rygel
tries to get it using the Thumbnailer.

14 years agocore: Minor refactor
Zeeshan Ali (Khattak) [Tue, 8 Sep 2009 13:49:42 +0000 (16:49 +0300)]
core: Minor refactor

Public methods should be listed first and then internal.

14 years agocore: Thumbnailer should be singleton
Zeeshan Ali (Khattak) [Tue, 8 Sep 2009 13:47:18 +0000 (16:47 +0300)]
core: Thumbnailer should be singleton

14 years agocore: Add Thumbnailer
Zeeshan Ali (Khattak) [Tue, 8 Sep 2009 13:07:51 +0000 (16:07 +0300)]
core: Add Thumbnailer

At the moment, it doesn't generate any thumbnails but serves existing
thumbnails provided by either GNOME apps or hildon-thumbnailer. While
former is good for desktop-integration the later is not only good for
maemo-integration but is also DLNA-compliant since DLNA requires
thumbnails to be provided at least in JPEG format.

14 years agocore,tracker: Derive Thumbnail from IconInfo
Zeeshan Ali (Khattak) [Mon, 7 Sep 2009 13:01:02 +0000 (16:01 +0300)]
core,tracker: Derive Thumbnail from IconInfo

14 years agocore: Very minor refactoring
Zeeshan Ali (Khattak) [Sat, 5 Sep 2009 23:51:31 +0000 (02:51 +0300)]
core: Very minor refactoring

14 years agocore: Allow plugins to provide thumbnails
Zeeshan Ali (Khattak) [Sat, 5 Sep 2009 23:44:11 +0000 (02:44 +0300)]
core: Allow plugins to provide thumbnails

Plugins can now provide thumnails using a new easy-to-use API.

14 years agogstlaunch: use the default rygel configuration file
Thijs Vermeir [Wed, 19 Aug 2009 00:04:18 +0000 (02:04 +0200)]
gstlaunch: use the default rygel configuration file

14 years agogstlaunch: add new plugin that shares gstreamer launch lines
Thijs Vermeir [Sun, 16 Aug 2009 19:01:27 +0000 (21:01 +0200)]
gstlaunch: add new plugin that shares gstreamer launch lines

This plugin is reading from a configuration KeyFile and creates a item
for every group in this file.

14 years agotest: create the pipeline in a more simple way
Thijs Vermeir [Tue, 18 Aug 2009 03:04:30 +0000 (05:04 +0200)]
test: create the pipeline in a more simple way

14 years agodata,ui: Glade-3 mood swings
Zeeshan Ali (Khattak) [Thu, 3 Sep 2009 14:51:40 +0000 (17:51 +0300)]
data,ui: Glade-3 mood swings

14 years agocore,ui,data: Replace 'ip' config with 'interface'
Zeeshan Ali (Khattak) [Thu, 3 Sep 2009 14:49:52 +0000 (17:49 +0300)]
core,ui,data: Replace 'ip' config with 'interface'

Replace 'host-ip' configuration key with 'interface'. Also provide an
ease-to-use UI component to set this key in the user config.

14 years agocore: Set DLNA transferMode header on responses
Zeeshan Ali (Khattak) [Wed, 2 Sep 2009 23:17:26 +0000 (02:17 +0300)]
core: Set DLNA transferMode header on responses

Warning: We only copy the value from the request and all we do to
entertain this header is to set the priority of IO operations.

14 years agocore,data: Version D-Bus interface, path and service
Zeeshan Ali (Khattak) [Wed, 2 Sep 2009 19:18:22 +0000 (22:18 +0300)]
core,data: Version D-Bus interface, path and service

14 years agocore: Correctly handle unset port in configs
Zeeshan Ali (Khattak) [Wed, 2 Sep 2009 19:09:15 +0000 (22:09 +0300)]
core: Correctly handle unset port in configs

14 years agocore: Only advertise internal URIs on lo
Zeeshan Ali (Khattak) [Wed, 2 Sep 2009 13:32:37 +0000 (16:32 +0300)]
core: Only advertise internal URIs on lo

Only advertise internal URIs on loopback interface.

14 years agocore: HTTPServer.context is now public property
Zeeshan Ali (Khattak) [Wed, 2 Sep 2009 13:32:06 +0000 (16:32 +0300)]
core: HTTPServer.context is now public property

14 years agocore: Early protocol detection
Zeeshan Ali (Khattak) [Wed, 2 Sep 2009 12:29:53 +0000 (15:29 +0300)]
core: Early protocol detection

14 years agocore: Hide internal API
Zeeshan Ali (Khattak) [Wed, 2 Sep 2009 11:04:01 +0000 (14:04 +0300)]
core: Hide internal API

14 years agocore: Error on wrong "getcontentFeatures.dlna.org"
Zeeshan Ali (Khattak) [Wed, 2 Sep 2009 10:16:47 +0000 (13:16 +0300)]
core: Error on wrong "getcontentFeatures.dlna.org"

Return error code 400 if getcontentFeatures.dlna.org is other than "1".

14 years agocore,plugins: Remove redundant statement
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 22:28:49 +0000 (01:28 +0300)]
core,plugins: Remove redundant statement

Remove redundant 'using Rygel;' statement from all vala files.

14 years agocore: Add disclaimer for some ugly-looking code
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 22:14:07 +0000 (01:14 +0300)]
core: Add disclaimer for some ugly-looking code

14 years agocore: Merge two methods of HTTPRequestHandler
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 22:06:45 +0000 (01:06 +0300)]
core: Merge two methods of HTTPRequestHandler

Merge add_content_features_headers and add_response_headers of
HTTPRequestHandler class.

14 years agocore: Turn HTTPRequestHandler into abstract class
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 21:56:40 +0000 (00:56 +0300)]
core: Turn HTTPRequestHandler into abstract class

14 years agocore: Provide contentFeatures.dlna.org header
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 21:38:45 +0000 (00:38 +0300)]
core: Provide contentFeatures.dlna.org header

Provide the "contentFeatures.dlna.org" header in HTTP responses.

14 years agocore: MediaItem.get_protocol_info is now private
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 19:56:51 +0000 (22:56 +0300)]
core: MediaItem.get_protocol_info is now private

14 years agocore: Param uri of MediaItem.add_resource is now nullable
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 19:55:12 +0000 (22:55 +0300)]
core: Param uri of MediaItem.add_resource is now nullable

14 years agocore: HTTPRequest.http_server is now public prop
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 19:53:19 +0000 (22:53 +0300)]
core: HTTPRequest.http_server is now public prop

14 years agocore: Move seek errors to HTTPSeekError
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 13:52:09 +0000 (16:52 +0300)]
core: Move seek errors to HTTPSeekError

14 years agocore: Rename Seek to HTTPSeek
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 13:41:53 +0000 (16:41 +0300)]
core: Rename Seek to HTTPSeek

14 years agocore: Random asthetic fixes
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 13:19:37 +0000 (16:19 +0300)]
core: Random asthetic fixes

14 years agocore: IdentityRequestHandler -> HTTPIdentityHandler
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 13:12:56 +0000 (16:12 +0300)]
core: IdentityRequestHandler -> HTTPIdentityHandler

Rename IdentityRequestHandler to HTTPIdentityHandler.

14 years agocore: Add HTTPTranscodeHandler
Zeeshan Ali (Khattak) [Tue, 1 Sep 2009 13:04:51 +0000 (16:04 +0300)]
core: Add HTTPTranscodeHandler

Move HTTPRequestHandler implementation from Transcoder to a new class,
HTTPTranscodeHandler. This is to keep the HTTP protocol implementation
as separate as possible so that later we can easily add more protocol
handlers (e.g RTSP).

14 years agocore: Add MediaItem.get_protocol_info()
Zeeshan Ali (Khattak) [Wed, 26 Aug 2009 20:16:43 +0000 (23:16 +0300)]
core: Add MediaItem.get_protocol_info()

14 years agocore: Minor refactoring of MediaItem class
Zeeshan Ali (Khattak) [Wed, 26 Aug 2009 20:10:56 +0000 (23:10 +0300)]
core: Minor refactoring of MediaItem class

14 years agocore: Minor non-functional fixes
Zeeshan Ali (Khattak) [Wed, 26 Aug 2009 20:01:07 +0000 (23:01 +0300)]
core: Minor non-functional fixes

Minor fixes related mostly to coding-style

14 years agocore: Refactor: request handling into separate interface
James Henstridge [Mon, 3 Aug 2009 13:06:51 +0000 (21:06 +0800)]
core: Refactor: request handling into separate interface

Factor out the request handling code into an HTTPRequestHandler interface.
The interface is implemented by Rygel.Transcoder and an "identity request
handler" used to serve items as is.

14 years agocore: Push creation of gst source to MediaItem
James Henstridge [Mon, 3 Aug 2009 10:16:31 +0000 (18:16 +0800)]
core: Push creation of gst source to MediaItem

Previously MediaItem.create_stream_source was only called for items that
did not provide any URIs.  If a URI was available, then HTTPRequest
would create an element directly from it.  Now HTTPRequest always calls
create_stream_source and the default implementation knows how to create
an element from a URI.

14 years agocore: List the resources according to compatiblity
Zeeshan Ali (Khattak) [Tue, 25 Aug 2009 15:14:54 +0000 (18:14 +0300)]
core: List the resources according to compatiblity

Transcoding formats that are further from the format of the item in
question, should be listed at the end and viceversa. Not making sense?
Read the code, Luke!

14 years agocore: Better distance calculation for transcoders
Zeeshan Ali (Khattak) [Tue, 25 Aug 2009 15:13:43 +0000 (18:13 +0300)]
core: Better distance calculation for transcoders

14 years agocore: A small indentation fix
Zeeshan Ali (Khattak) [Tue, 25 Aug 2009 15:11:52 +0000 (18:11 +0300)]
core: A small indentation fix

14 years agocore: Add Transcoder.get_distance()
Zeeshan Ali (Khattak) [Mon, 6 Jul 2009 15:07:59 +0000 (18:07 +0300)]
core: Add Transcoder.get_distance()

Add a method to Transcoder classes that returns a the numeric value that
gives an estimate of how hard would it be to trancode @item to target
profile of this transcoder.

14 years agocore: Use the correct pixel-aspect-ratio
Zeeshan Ali (Khattak) [Sun, 5 Jul 2009 15:15:02 +0000 (18:15 +0300)]
core: Use the correct pixel-aspect-ratio

Use the correct pixel-aspect-ratio for transcoded videos.

14 years agocore: Add pixel-aspect-ratio props to MediaItem
Zeeshan Ali (Khattak) [Sun, 5 Jul 2009 14:56:21 +0000 (17:56 +0300)]
core: Add pixel-aspect-ratio props to MediaItem

14 years agocore: Pass the items all the way to TranscoderBins
Zeeshan Ali (Khattak) [Sun, 5 Jul 2009 13:25:54 +0000 (16:25 +0300)]
core: Pass the items all the way to TranscoderBins

14 years agocore: Pass MediaItem to Transcoder.create_source()
Zeeshan Ali (Khattak) [Sun, 5 Jul 2009 13:06:49 +0000 (16:06 +0300)]
core: Pass MediaItem to Transcoder.create_source()

14 years agocore: Set bitrate on MP2TS transcoding res
Zeeshan Ali (Khattak) [Sun, 5 Jul 2009 10:11:44 +0000 (13:11 +0300)]
core: Set bitrate on MP2TS transcoding res

14 years agocore: Don't create iconList element if it exists
Zeeshan Ali (Khattak) [Tue, 25 Aug 2009 11:30:11 +0000 (14:30 +0300)]
core: Don't create iconList element if it exists

14 years agocore: Require latest gupnp-av (0.5)
Zeeshan Ali (Khattak) [Mon, 24 Aug 2009 22:37:37 +0000 (01:37 +0300)]
core: Require latest gupnp-av (0.5)

14 years agocore: Adapt to new gupnp and gupnp-av APIs
Zeeshan Ali (Khattak) [Mon, 24 Aug 2009 13:20:58 +0000 (16:20 +0300)]
core: Adapt to new gupnp and gupnp-av APIs

14 years agocore: Copy the factory list before creating devices
Zeeshan Ali (Khattak) [Thu, 30 Jul 2009 14:37:32 +0000 (17:37 +0300)]
core: Copy the factory list before creating devices

We iterate over the copy of the list rather than list itself because
there is high chances of the original list being modified during the
iteration, which is not allowed by libgee.

14 years agocore: Add factory before creating devices from it
Zeeshan Ali (Khattak) [Thu, 30 Jul 2009 00:53:50 +0000 (03:53 +0300)]
core: Add factory before creating devices from it

14 years agocore: Copy the plugin list before creating devices
Zeeshan Ali (Khattak) [Thu, 30 Jul 2009 00:27:54 +0000 (03:27 +0300)]
core: Copy the plugin list before creating devices

Copy the plugin list before creting devices for each plugin. Otherwise the
mainloop gets run during the device creation and that mostly results in the
modification of the Hashmap holding the plugin list.

14 years agocore: Use destroyer instead of keeping a weak_ref
Zeeshan Ali (Khattak) [Thu, 30 Jul 2009 00:26:15 +0000 (03:26 +0300)]
core: Use destroyer instead of keeping a weak_ref

Keep a pointer to description document and delete it on destruction of
the associated RootDevice instead of using weak_ref.

14 years agocore: Require next gupnp-vala release
Zeeshan Ali (Khattak) [Wed, 29 Jul 2009 22:09:02 +0000 (01:09 +0300)]
core: Require next gupnp-vala release

14 years agocore: Use the new GSSDP/GUPnP APIs
Zeeshan Ali (Khattak) [Wed, 29 Jul 2009 21:58:11 +0000 (00:58 +0300)]
core: Use the new GSSDP/GUPnP APIs

14 years agocore: TranscodeManager shouldn't know about protocol
Zeeshan Ali (Khattak) [Tue, 28 Jul 2009 22:05:59 +0000 (01:05 +0300)]
core: TranscodeManager shouldn't know about protocol

TranscodeManager doesn't need to know about transport protocol being
used by it's implementation class(es).

14 years agocore: ProtocolInfo provided by TranscodeManager
Zeeshan Ali (Khattak) [Tue, 28 Jul 2009 21:51:12 +0000 (00:51 +0300)]
core: ProtocolInfo provided by TranscodeManager

ProtocolInfo is now completely provided by TranscodeManager and it's
deriving classes.

14 years agocore: Indentation/coding style fixes for last commit
Zeeshan Ali (Khattak) [Tue, 28 Jul 2009 21:26:24 +0000 (00:26 +0300)]
core: Indentation/coding style fixes for last commit

14 years agocore: Expose transcode formats in the ProtocolInfo
James Henstridge [Tue, 28 Jul 2009 11:02:39 +0000 (19:02 +0800)]
core: Expose transcode formats in the ProtocolInfo

Some media players (e.g. certain Sony Bravia models) won't talk to media
servers that don't advertise a DLNA profile they understand, so this is
necessary to talk to such devices.

14 years agocore: bitrate should be in bytes/second
James Henstridge [Tue, 28 Jul 2009 12:34:51 +0000 (15:34 +0300)]
core: bitrate should be in bytes/second

Set the bitrate for transcoded resources in bytes/second.

14 years agocore: Add new ignore rules
James Henstridge [Tue, 28 Jul 2009 04:44:04 +0000 (12:44 +0800)]
core: Add new ignore rules

14 years agocore: Fix a typo.
James Henstridge [Tue, 28 Jul 2009 04:44:34 +0000 (12:44 +0800)]
core: Fix a typo.

Fix a typo that prevented dc:creator from being included in DIDL output.

14 years agobuild: add GEN prefix for rygel.conf
Jens Georg [Sat, 25 Jul 2009 20:48:04 +0000 (22:48 +0200)]
build: add GEN prefix for rygel.conf

14 years agoShave the output
Zeeshan Ali (Khattak) [Sat, 25 Jul 2009 23:46:34 +0000 (02:46 +0300)]
Shave the output

Use new automake feature/macro to shave the build output by default.

14 years agobuild: Remove forgotten redundant rule
Zeeshan Ali (Khattak) [Sat, 25 Jul 2009 23:31:49 +0000 (02:31 +0300)]
build: Remove forgotten redundant rule

14 years agobuild: Indentation fixes
Zeeshan Ali (Khattak) [Sat, 25 Jul 2009 23:29:11 +0000 (02:29 +0300)]
build: Indentation fixes

14 years agobuild: unify and hence simplify core build
Zeeshan Ali (Khattak) [Sat, 25 Jul 2009 22:41:51 +0000 (01:41 +0300)]
build: unify and hence simplify core build

No need to build vapi separately from rest of rygel