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

14 years agobuild: Use automake-1.11's vala support
Jens Georg [Sat, 25 Jul 2009 16:16:15 +0000 (18:16 +0200)]
build: Use automake-1.11's vala support

14 years agobuild: Fix out-of-tree builds
Jens Georg [Sat, 25 Jul 2009 13:37:57 +0000 (15:37 +0200)]
build: Fix out-of-tree builds

14 years agobuild: Fix build with automake-1.11
Jens Georg [Sat, 25 Jul 2009 10:59:18 +0000 (12:59 +0200)]
build: Fix build with automake-1.11

14 years agocore: And still the removal of gconf usage
Zeeshan Ali (Khattak) [Fri, 24 Jul 2009 22:28:45 +0000 (01:28 +0300)]
core: And still the removal of gconf usage

14 years agocore: Get rid of remainder of gconf usage
Zeeshan Ali (Khattak) [Fri, 24 Jul 2009 22:24:00 +0000 (01:24 +0300)]
core: Get rid of remainder of gconf usage

14 years agoAsynchronously wait for state change
Zeeshan Ali (Khattak) [Fri, 24 Jul 2009 14:44:41 +0000 (17:44 +0300)]
Asynchronously wait for state change

Asynchronously wait for state change rather than making a synchronous call
to make sure state is changed before seeking.

14 years agoAdd support for time-based seeking in transcoded streams.
James Henstridge [Mon, 20 Jul 2009 11:11:07 +0000 (19:11 +0800)]
Add support for time-based seeking in transcoded streams.

* Transcoded resources now set the DLNA operation to TIMESEEK.
* The Rygel.Seek class has been moved out into its own file, and now
  includes code to represent time based ranges.
* The Rygel.Seek class includes routines for parsing both byte ranges
  (from the standard Range HTTP header), and time ranges (from the
  non-standard TimeSeekRange.dlna.org header).
* For transcoded streams, a TimeSeekRange.dlna.org response header is
  generated if the request included one.
* LiveResponse seeks the pipeline to the appropriate starting point
  before playback.

15 years agocore: No need to mark the device unavailable
Zeeshan Ali (Khattak) [Tue, 14 Jul 2009 12:25:34 +0000 (15:25 +0300)]
core: No need to mark the device unavailable

No need to mark the device unavailable before destorying it.

15 years agocore: (Un)pause the SoupMessage at the right time
Zeeshan Ali (Khattak) [Mon, 13 Jul 2009 16:19:35 +0000 (19:19 +0300)]
core: (Un)pause the SoupMessage at the right time

- Pause the msg in run() method.
- Unpause the msg on error or HEAD message.

15 years agocore: No need to keep path of config file around
Zeeshan Ali (Khattak) [Mon, 13 Jul 2009 15:35:48 +0000 (18:35 +0300)]
core: No need to keep path of config file around

Just keep the 'read_only' flag and write to user's config if this
flag is not set in save method.

15 years agoui: Show paths instead of URIs whenever possible
Zeeshan Ali (Khattak) [Thu, 9 Jul 2009 09:40:41 +0000 (12:40 +0300)]
ui: Show paths instead of URIs whenever possible

15 years agoui: Saner defaults for FileChooserDialog
Zeeshan Ali (Khattak) [Thu, 9 Jul 2009 09:28:27 +0000 (12:28 +0300)]
ui: Saner defaults for FileChooserDialog

15 years agocore: Move context.host_path call to RootDeviceFactory
Zeeshan Ali (Khattak) [Wed, 8 Jul 2009 15:13:27 +0000 (18:13 +0300)]
core: Move context.host_path call to RootDeviceFactory

15 years agocore: Make the device unavailable before removing
Zeeshan Ali (Khattak) [Wed, 8 Jul 2009 14:57:08 +0000 (17:57 +0300)]
core: Make the device unavailable before removing

15 years agocore: Can't remove from ArrayList during iteration
Zeeshan Ali (Khattak) [Wed, 8 Jul 2009 14:54:22 +0000 (17:54 +0300)]
core: Can't remove from ArrayList during iteration

15 years agocore: Useful debug messages on context (un)availability
Zeeshan Ali (Khattak) [Wed, 8 Jul 2009 14:14:49 +0000 (17:14 +0300)]
core: Useful debug messages on context (un)availability

15 years agocore: Bump-up gupnp-vala requirment to 0.5.5
Zeeshan Ali (Khattak) [Wed, 8 Jul 2009 13:16:32 +0000 (16:16 +0300)]
core: Bump-up gupnp-vala requirment to 0.5.5

15 years agocore: Minor indentation fix
Zeeshan Ali (Khattak) [Wed, 8 Jul 2009 12:29:39 +0000 (15:29 +0300)]
core: Minor indentation fix

15 years agocore: Multiple/dynamic network handling
Zeeshan Ali (Khattak) [Wed, 8 Jul 2009 12:15:02 +0000 (15:15 +0300)]
core: Multiple/dynamic network handling

Use the new GUPnP.ContextManager to create root devices for plugins as
new contexts become available and viceversa.

15 years agocore: RootDeviceFactory doesn't create context
Zeeshan Ali (Khattak) [Wed, 8 Jul 2009 12:11:04 +0000 (15:11 +0300)]
core: RootDeviceFactory doesn't create context

The context is passed to it as constructor argument.

15 years agocore: RootDeviceFactory.context is now public
Zeeshan Ali (Khattak) [Wed, 8 Jul 2009 12:10:05 +0000 (15:10 +0300)]
core: RootDeviceFactory.context is now public

15 years agoRequire gupnp 0.13
Zeeshan Ali (Khattak) [Tue, 7 Jul 2009 13:11:34 +0000 (16:11 +0300)]
Require gupnp 0.13

15 years agoexternal: Utilize optional MediaItem properties
Zeeshan Ali (Khattak) [Sun, 5 Jul 2009 09:39:14 +0000 (12:39 +0300)]
external: Utilize optional MediaItem properties

Now we utilize all MediaItem properties except for:
  * Genre
  * Thumbnail
  * AlbumArt

15 years agocore: Use the correct config file
Zeeshan Ali (Khattak) [Sat, 4 Jul 2009 12:54:17 +0000 (15:54 +0300)]
core: Use the correct config file

15 years agocore: Remove gconf stuff from configure.ac
Zeeshan Ali (Khattak) [Sat, 4 Jul 2009 12:47:02 +0000 (15:47 +0300)]
core: Remove gconf stuff from configure.ac

15 years agocore: Remove gconf schema files
Zeeshan Ali (Khattak) [Sat, 4 Jul 2009 12:45:07 +0000 (15:45 +0300)]
core: Remove gconf schema files

15 years agocore: Templates for config file
Zeeshan Ali (Khattak) [Sat, 4 Jul 2009 08:12:05 +0000 (11:12 +0300)]
core: Templates for config file

Config file is now generated from one of the templates. This the
equivalent of gconf schemas.

15 years agocore: Install config file in system config dir
Zeeshan Ali (Khattak) [Fri, 3 Jul 2009 22:30:16 +0000 (01:30 +0300)]
core: Install config file in system config dir

15 years agocore: Correct condition for system config loading
Zeeshan Ali (Khattak) [Fri, 3 Jul 2009 21:56:19 +0000 (00:56 +0300)]
core: Correct condition for system config loading

System config file should be used if configuration is read-only and not
the other way around.

15 years agocore: Minor indentation fix
Zeeshan Ali (Khattak) [Fri, 3 Jul 2009 21:50:19 +0000 (00:50 +0300)]
core: Minor indentation fix

15 years agocore,ui: Diff between read-only and writable config
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 21:20:47 +0000 (00:20 +0300)]
core,ui: Diff between read-only and writable config

read-only: Reads config from system-installed config file as well and
           doesn't support saving of changes.
writable:  Reads config only from user's config file and supports saving
           of changes.

15 years agoui: Don't use the default singleton
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 20:48:58 +0000 (23:48 +0300)]
ui: Don't use the default singleton

15 years agocore: Don't lose translations/comments in config
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 15:47:40 +0000 (18:47 +0300)]
core: Don't lose translations/comments in config

15 years agoui: keep and save the configuration in the end
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 15:39:25 +0000 (18:39 +0300)]
ui: keep and save the configuration in the end

15 years agocore: Provide configuration saving API
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 15:38:52 +0000 (18:38 +0300)]
core: Provide configuration saving API

15 years agoui: Put failable calls in separate try/catch blocks
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 14:43:51 +0000 (17:43 +0300)]
ui: Put failable calls in separate try/catch blocks

15 years agoui: "port" key is now also optional
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 14:19:29 +0000 (17:19 +0300)]
ui: "port" key is now also optional

15 years agoui: Explicitly link to dbus-glib
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 14:15:12 +0000 (17:15 +0300)]
ui: Explicitly link to dbus-glib

15 years agocore,plugins,ui: Move from GConf to .ini file usage
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 13:49:07 +0000 (16:49 +0300)]
core,plugins,ui: Move from GConf to .ini file usage

15 years agocore: Expose sysconfdir to vala world
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 13:47:50 +0000 (16:47 +0300)]
core: Expose sysconfdir to vala world

15 years agocore: Bump-up vala requirement to 0.7.4
Zeeshan Ali (Khattak) [Fri, 26 Jun 2009 11:16:15 +0000 (14:16 +0300)]
core: Bump-up vala requirement to 0.7.4

15 years agocore,media-export: Rename DatabaseBackedMediaContainer
Jens Georg [Thu, 25 Jun 2009 12:33:17 +0000 (14:33 +0200)]
core,media-export: Rename DatabaseBackedMediaContainer

15 years agocore: rename database strings
Jens Georg [Thu, 25 Jun 2009 12:25:32 +0000 (14:25 +0200)]
core: rename database strings

15 years agomedia-export: skip files/folders starting with '.'
Jens Georg [Wed, 24 Jun 2009 23:03:56 +0000 (01:03 +0200)]
media-export: skip files/folders starting with '.'

15 years agomedia-export: notify about updates
Jens Georg [Wed, 24 Jun 2009 23:00:28 +0000 (01:00 +0200)]
media-export: notify about updates

notify about updated containers after harvesting
all files in this container

15 years agocore: update child count if container is updated
Jens Georg [Wed, 24 Jun 2009 22:52:40 +0000 (00:52 +0200)]
core: update child count if container is updated

15 years agomedia-export: cleanup root container descendency
Jens Georg [Wed, 24 Jun 2009 22:51:29 +0000 (00:51 +0200)]
media-export: cleanup root container descendency

15 years agomedia-export: get rid of third queue
Jens Georg [Wed, 24 Jun 2009 22:29:48 +0000 (00:29 +0200)]
media-export: get rid of third queue

15 years agocore: add basic sorting
Jens Georg [Wed, 24 Jun 2009 22:19:15 +0000 (00:19 +0200)]
core: add basic sorting

15 years agomedia-export: fix child count reporting
Jens Georg [Wed, 24 Jun 2009 22:12:19 +0000 (00:12 +0200)]
media-export: fix child count reporting

15 years agomedia-export: fix id calculation
Jens Georg [Wed, 24 Jun 2009 21:27:23 +0000 (23:27 +0200)]
media-export: fix id calculation

15 years agomedia-export: remove debug output
Jens Georg [Wed, 24 Jun 2009 21:20:48 +0000 (23:20 +0200)]
media-export: remove debug output

15 years agomedia-export: remove unused classes
Jens Georg [Wed, 24 Jun 2009 21:17:18 +0000 (23:17 +0200)]
media-export: remove unused classes

15 years agocore: add existence check for object to db
Jens Georg [Wed, 24 Jun 2009 21:13:20 +0000 (23:13 +0200)]
core: add existence check for object to db

15 years agomedia-export: Add media harvester class
Jens Georg [Wed, 24 Jun 2009 20:43:40 +0000 (22:43 +0200)]
media-export: Add media harvester class

15 years agocore: Revert "core: Allow parentless Media item"
Jens Georg [Wed, 24 Jun 2009 19:59:46 +0000 (21:59 +0200)]
core: Revert "core: Allow parentless Media item"

This reverts commit f7bf5909f5b1e1413ad0472a3a7f2fbf9e31edb3.

15 years agocore: get rid of parentless media item
Jens Georg [Wed, 24 Jun 2009 19:58:05 +0000 (21:58 +0200)]
core: get rid of parentless media item

15 years agocore: Create directory of database if not already existing
Jens Georg [Mon, 22 Jun 2009 22:08:03 +0000 (00:08 +0200)]
core: Create directory of database if not already existing

15 years agocore: move uris from MediaItem to MediaObject
Jens Georg [Sun, 21 Jun 2009 00:12:44 +0000 (02:12 +0200)]
core: move uris from MediaItem to MediaObject

15 years agocore: initialize database backed container with correct child count
Jens Georg [Sun, 21 Jun 2009 00:08:56 +0000 (02:08 +0200)]
core: initialize database backed container with correct child count

15 years agocore: add function to query child count from database
Jens Georg [Sun, 21 Jun 2009 00:08:01 +0000 (02:08 +0200)]
core: add function to query child count from database

15 years agocore: never return null children list; use empty list instead
Jens Georg [Sun, 21 Jun 2009 00:04:59 +0000 (02:04 +0200)]
core: never return null children list; use empty list instead

15 years agocore: Fix join in query and giving child correct id
Jens Georg [Sun, 21 Jun 2009 00:03:00 +0000 (02:03 +0200)]
core: Fix join in query and giving child correct id

15 years agocore: Fix query for objects regargind left outer join semantics
Jens Georg [Sat, 20 Jun 2009 23:58:49 +0000 (01:58 +0200)]
core: Fix query for objects regargind left outer join semantics

Previously no objects would be found if there was no metadata. This
applys to containers. Mixed up left and right here.

15 years agocore: add uris to items when fetched from db
Jens Georg [Sat, 20 Jun 2009 23:52:28 +0000 (01:52 +0200)]
core: add uris to items when fetched from db