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

15 years agocore: fix bogus return statement
Jens Georg [Sat, 20 Jun 2009 23:41:59 +0000 (01:41 +0200)]
core: fix bogus return statement

15 years agocore: for all children set container as parent
Jens Georg [Sat, 20 Jun 2009 23:28:51 +0000 (01:28 +0200)]
core: for all children set container as parent

15 years agocore: Replace homegrown queue with GLib's
Jens Georg [Tue, 9 Jun 2009 21:48:27 +0000 (23:48 +0200)]
core: Replace homegrown queue with GLib's

15 years agocore: issue File if finished, not uri
Jens Georg [Thu, 4 Jun 2009 23:05:03 +0000 (01:05 +0200)]
core: issue File if finished, not uri

15 years agocore: Make MetadataExtractor public in vapi
Jens Georg [Thu, 4 Jun 2009 23:04:35 +0000 (01:04 +0200)]
core: Make MetadataExtractor public in vapi

15 years agocore: Add get_children and get_object method
Jens Georg [Thu, 4 Jun 2009 22:25:31 +0000 (00:25 +0200)]
core: Add get_children and get_object method

15 years agocore: more db schema fixes
Jens Georg [Thu, 4 Jun 2009 20:25:27 +0000 (22:25 +0200)]
core: more db schema fixes

15 years agocore: Add missing item duration to table
Jens Georg [Sun, 31 May 2009 10:26:27 +0000 (12:26 +0200)]
core: Add missing item duration to table

15 years agocore: Add item retrieval method
Jens Georg [Sun, 31 May 2009 10:13:32 +0000 (12:13 +0200)]
core: Add item retrieval method

15 years agocore: Add missing file
Jens Georg [Sat, 30 May 2009 21:31:41 +0000 (23:31 +0200)]
core: Add missing file

15 years agocore: Allow parentless Media item
Jens Georg [Sat, 30 May 2009 19:07:50 +0000 (21:07 +0200)]
core: Allow parentless Media item

15 years agocore: Implement saving of item in database
Jens Georg [Sat, 30 May 2009 14:02:20 +0000 (16:02 +0200)]
core: Implement saving of item in database

15 years agocore: Add basic media database class
Jens Georg [Mon, 25 May 2009 20:01:56 +0000 (22:01 +0200)]
core: Add basic media database class

15 years agocore: Use fake sinks for playbin to suppress window popup on video
Jens Georg [Sun, 24 May 2009 14:35:12 +0000 (16:35 +0200)]
core: Use fake sinks for playbin to suppress window popup on video

15 years agocore: Handle error in extract_mime_and_size
Jens Georg [Sun, 24 May 2009 14:30:44 +0000 (16:30 +0200)]
core: Handle error in extract_mime_and_size

Got to next uri if this function fails

15 years agocore: Fix TagName != structure key
Jens Georg [Sun, 24 May 2009 14:26:12 +0000 (16:26 +0200)]
core: Fix TagName != structure key

15 years agocore: Add simple Queue convenience class based on Gee.ArrayList
Jens Georg [Sun, 24 May 2009 14:24:20 +0000 (16:24 +0200)]
core: Add simple Queue convenience class based on Gee.ArrayList

15 years agocore: Add error event for failing files
Jens Georg [Sun, 24 May 2009 14:21:14 +0000 (16:21 +0200)]
core: Add error event for failing files

15 years agocore: Add custom tags to taglist for extra info
Jens Georg [Sun, 24 May 2009 14:17:05 +0000 (16:17 +0200)]
core: Add custom tags to taglist for extra info

Extra information like width, height etc. is not covered
by the standard tags. While collecting this data is now
inserted into the tag list.

15 years agocore: Replace properties with internal queue
Jens Georg [Sat, 23 May 2009 12:04:23 +0000 (14:04 +0200)]
core: Replace properties with internal queue

15 years agocore: Collect tags and emit them en-block when done
Jens Georg [Sat, 23 May 2009 10:37:50 +0000 (12:37 +0200)]
core: Collect tags and emit them en-block when done

Previous code was emitting a signal for every tag found

15 years agocore: Make extractor compile
Jens Georg [Fri, 22 May 2009 13:27:38 +0000 (15:27 +0200)]
core: Make extractor compile

15 years agocore: Revert "Remove MetadataExtractor class."
Jens Georg [Fri, 22 May 2009 12:33:05 +0000 (14:33 +0200)]
core: Revert "Remove MetadataExtractor class."

This reverts commit 4d530bd0347c69a95110c7d399372e19cdf83793.
libowl would drag in a hard dependency to GTK+ which is not desired

Conflicts:

    src/rygel/Makefile.am

15 years agotracker: Clamp the index and offset
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 11:43:10 +0000 (14:43 +0300)]
tracker: Clamp the index and offset

Without this, Rygel was crashing because of tracker plugin passing
invalid params to List.slice().

15 years agocore: Provide 'childCount' only when requested
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 11:26:03 +0000 (14:26 +0300)]
core: Provide 'childCount' only when requested

15 years agocore: Correctly handle top-level attributes
Zeeshan Ali (Khattak) [Wed, 24 Jun 2009 11:25:19 +0000 (14:25 +0300)]
core: Correctly handle top-level attributes

15 years agoexternal: Don't load the plugin more than once
Zeeshan Ali (Khattak) [Tue, 23 Jun 2009 22:52:28 +0000 (01:52 +0300)]
external: Don't load the plugin more than once

15 years agomedia-export: Remove extra "-media" from filenames
Zeeshan Ali (Khattak) [Tue, 23 Jun 2009 22:01:40 +0000 (01:01 +0300)]
media-export: Remove extra "-media" from filenames

15 years agocore: Clear 'serviceList' before adding services
Zeeshan Ali (Khattak) [Tue, 23 Jun 2009 16:07:07 +0000 (19:07 +0300)]
core: Clear 'serviceList' before adding services

15 years agocore: Put BrowseFilter class in separate file
Zeeshan Ali (Khattak) [Tue, 23 Jun 2009 15:09:42 +0000 (18:09 +0300)]
core: Put BrowseFilter class in separate file

15 years agocore: Apply browse filter to 'res' attributes
Zeeshan Ali (Khattak) [Tue, 23 Jun 2009 13:47:40 +0000 (16:47 +0300)]
core: Apply browse filter to 'res' attributes

15 years agocore: Attributes imply inclusion of associated prop
Zeeshan Ali (Khattak) [Tue, 23 Jun 2009 12:37:29 +0000 (15:37 +0300)]
core: Attributes imply inclusion of associated prop

15 years agocore: Assume parent of parentless item to be root
Zeeshan Ali (Khattak) [Mon, 22 Jun 2009 22:45:29 +0000 (01:45 +0300)]
core: Assume parent of parentless item to be root

15 years agocore: Minor re-formatting to reduce LOCs
Zeeshan Ali (Khattak) [Mon, 22 Jun 2009 22:02:48 +0000 (01:02 +0300)]
core: Minor re-formatting to reduce LOCs

15 years agocore: Rename Filter to BrowseFilter
Zeeshan Ali (Khattak) [Mon, 22 Jun 2009 20:36:51 +0000 (23:36 +0300)]
core: Rename Filter to BrowseFilter

15 years agocore: "upnp:class" is mandatory property.
Zeeshan Ali (Khattak) [Mon, 22 Jun 2009 20:32:07 +0000 (23:32 +0300)]
core: "upnp:class" is mandatory property.

15 years agocore: No need to refer by full path
Zeeshan Ali (Khattak) [Mon, 22 Jun 2009 20:24:24 +0000 (23:24 +0300)]
core: No need to refer by full path

15 years agocore: Take care of property prefixes in filter
Zeeshan Ali (Khattak) [Mon, 22 Jun 2009 20:21:14 +0000 (23:21 +0300)]
core: Take care of property prefixes in filter

15 years agocore: Implement filtered-browse.
Zeeshan Ali (Khattak) [Mon, 22 Jun 2009 15:56:04 +0000 (18:56 +0300)]
core: Implement filtered-browse.

Currently we are not handling "res" properties.

15 years agocore: Use 'this' keyword.
Zeeshan Ali (Khattak) [Mon, 22 Jun 2009 14:21:58 +0000 (17:21 +0300)]
core: Use 'this' keyword.

15 years agocore: Allow owned refs to parent container
Zeeshan Ali (Khattak) [Tue, 23 Jun 2009 11:57:28 +0000 (14:57 +0300)]
core: Allow owned refs to parent container

15 years agoui: Separate out try/catch blocks
Zeeshan Ali (Khattak) [Sat, 20 Jun 2009 23:27:16 +0000 (02:27 +0300)]
ui: Separate out try/catch blocks

Put calls with different chances of failure into separate try/catch
blocks.

15 years agoui: Catch error when getting URIs from config
Zeeshan Ali (Khattak) [Sat, 20 Jun 2009 23:17:44 +0000 (02:17 +0300)]
ui: Catch error when getting URIs from config

15 years agoexternal: Make use of 'DLNAProfile' property
Zeeshan Ali (Khattak) [Thu, 18 Jun 2009 15:38:53 +0000 (18:38 +0300)]
external: Make use of 'DLNAProfile' property

15 years agocore: Add 'dlna_profile' to MediaItem
Zeeshan Ali (Khattak) [Thu, 18 Jun 2009 15:38:17 +0000 (18:38 +0300)]
core: Add 'dlna_profile' to MediaItem

15 years agocore: Disable MediaExport plugin on Maemo for now
Zeeshan Ali (Khattak) [Thu, 18 Jun 2009 15:20:40 +0000 (18:20 +0300)]
core: Disable MediaExport plugin on Maemo for now

15 years agocore: Don't use @REALNAME@ on Maemo
Zeeshan Ali (Khattak) [Thu, 18 Jun 2009 15:19:11 +0000 (18:19 +0300)]
core: Don't use @REALNAME@ on Maemo

Don't use @REALNAME@ in titles on Maemo.

15 years agocore: Require GStreamer >= 0.10.23
Zeeshan Ali (Khattak) [Thu, 18 Jun 2009 10:59:17 +0000 (13:59 +0300)]
core: Require GStreamer >= 0.10.23

Without that gstreamer, video transcoding will not work.

15 years agotracker: Better detection of Tracker availability
Zeeshan Ali (Khattak) [Wed, 17 Jun 2009 14:44:24 +0000 (17:44 +0300)]
tracker: Better detection of Tracker availability

Talk to Tracker directly to see if it's running or not instead of trying
to launch it. Fixes bug#586134.

15 years agocore: Enable LCPM transcoding for maemo
Zeeshan Ali (Khattak) [Wed, 17 Jun 2009 14:30:42 +0000 (17:30 +0300)]
core: Enable LCPM transcoding for maemo

15 years agocore: Add all schema files to distribution
Zeeshan Ali (Khattak) [Wed, 17 Jun 2009 14:28:44 +0000 (17:28 +0300)]
core: Add all schema files to distribution

15 years agocore: Refer to file by path not name
Zeeshan Ali (Khattak) [Wed, 17 Jun 2009 13:57:47 +0000 (16:57 +0300)]
core: Refer to file by path not name

Refering to it just by name was breaking `make distcheck`.

15 years agocore: Update README according to recent changes
Zeeshan Ali (Khattak) [Mon, 15 Jun 2009 07:59:28 +0000 (10:59 +0300)]
core: Update README according to recent changes

15 years agocore,ui,dvb: Remove DVB plugin
Zeeshan Ali (Khattak) [Mon, 15 Jun 2009 07:57:19 +0000 (10:57 +0300)]
core,ui,dvb: Remove DVB plugin

DVB Daemon will soon be implementing D-Bus MediaServer spec.

15 years agomedia-export: fix crash if nothing was configured
Jens Georg [Tue, 16 Jun 2009 18:16:39 +0000 (20:16 +0200)]
media-export: fix crash if nothing was configured

15 years agocore,plugins,ui: Fix self-contradiction in headers
Zeeshan Ali (Khattak) [Wed, 17 Jun 2009 11:47:10 +0000 (14:47 +0300)]
core,plugins,ui: Fix self-contradiction in headers

Remove "all rights reserved" part from all copyright headers.
Fixes bug#585986.

15 years agocore: Add forgotten files to BUILT_SOURCES
Zeeshan Ali (Khattak) [Wed, 17 Jun 2009 11:42:59 +0000 (14:42 +0300)]
core: Add forgotten files to BUILT_SOURCES

15 years agocore,plugins,ui: `make clean` don't clean generated files
Zeeshan Ali (Khattak) [Wed, 17 Jun 2009 11:32:45 +0000 (14:32 +0300)]
core,plugins,ui: `make clean` don't clean generated files

This should be done by `make maintainer-clean`. Fixes bug#585989.

15 years agocore: Remove a redundant 'using' statement
Zeeshan Ali (Khattak) [Mon, 15 Jun 2009 08:36:18 +0000 (11:36 +0300)]
core: Remove a redundant 'using' statement

15 years agocore: Don't spam the user's config dir
Zeeshan Ali (Khattak) [Mon, 15 Jun 2009 08:32:04 +0000 (11:32 +0300)]
core: Don't spam the user's config dir

Put the description files into a subdir under user's config dir.

15 years agocore: Tell the assumed protocol when probe fails
Zeeshan Ali (Khattak) [Mon, 15 Jun 2009 07:41:37 +0000 (10:41 +0300)]
core: Tell the assumed protocol when probe fails

15 years agocore: Reduce bitrate of mpeg2 video encoder to 3Mbps
Zeeshan Ali (Khattak) [Fri, 12 Jun 2009 21:17:43 +0000 (00:17 +0300)]
core: Reduce bitrate of mpeg2 video encoder to 3Mbps

PS3 didn't like that bitrate so I assume it wasn't even allowed. This
one now works perfect with PS3 at least.

15 years agocore: MP2TSTranscoder uses 720p rather than 1080i
Zeeshan Ali (Khattak) [Fri, 12 Jun 2009 20:40:42 +0000 (23:40 +0300)]
core: MP2TSTranscoder uses 720p rather than 1080i

15 years agocore: Special schemas file for maemo
Zeeshan Ali (Khattak) [Fri, 12 Jun 2009 16:10:00 +0000 (19:10 +0300)]
core: Special schemas file for maemo

15 years agocore: configure option to enable maemo support
Zeeshan Ali (Khattak) [Fri, 12 Jun 2009 15:39:35 +0000 (18:39 +0300)]
core: configure option to enable maemo support

Currently it doesn't do anything.

15 years agocore: Add new Tracker options to schemas file
Zeeshan Ali (Khattak) [Fri, 12 Jun 2009 15:28:44 +0000 (18:28 +0300)]
core: Add new Tracker options to schemas file

15 years agoui: Tracker options to share type of media
Zeeshan Ali (Khattak) [Fri, 12 Jun 2009 15:23:02 +0000 (18:23 +0300)]
ui: Tracker options to share type of media

Add options under Tracker plugin that allows user to select which type
of items he wants to share: videos, music and/or pictures.

15 years agocore: Handle int list options
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 20:01:21 +0000 (23:01 +0300)]
core: Handle int list options

15 years agocore: Handle string list options
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 16:59:11 +0000 (19:59 +0300)]
core: Handle string list options

So now you can tell Rygel to export URIs through commandline:

rygel -o MediaExport:uris:file:////path/to/some.mp3,http:////path/to/some.ogg

Yes, yes it's ugly but how do you handle dynamic (plugin) options?

15 years agocore: Separate option tokens by ":" rather than ","
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 16:49:49 +0000 (19:49 +0300)]
core: Separate option tokens by ":" rather than ","

15 years agocore: Handle dynamic (plugin) options
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 16:26:37 +0000 (19:26 +0300)]
core: Handle dynamic (plugin) options

Only simple (non-container) options for now.

15 years agocore: Don't use same short option twice
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 16:25:48 +0000 (19:25 +0300)]
core: Don't use same short option twice

15 years agocore: Commandline option to set plugin title
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 15:48:49 +0000 (18:48 +0300)]
core: Commandline option to set plugin title

15 years agocore: Indentation fixes
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 15:35:41 +0000 (18:35 +0300)]
core: Indentation fixes

15 years agocore: Add '--disable-plugin' commandline option
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 15:34:48 +0000 (18:34 +0300)]
core: Add '--disable-plugin' commandline option

15 years agocore: Basic implementation of CmdlineConfig
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 14:15:07 +0000 (17:15 +0300)]
core: Basic implementation of CmdlineConfig

An implementation of Configuration that gets it's options from commandline
arguments.

15 years agocore: Expose more build options to vala world
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 14:14:10 +0000 (17:14 +0300)]
core: Expose more build options to vala world

15 years agocore: Initialize the thread system
Zeeshan Ali (Khattak) [Thu, 11 Jun 2009 14:13:32 +0000 (17:13 +0300)]
core: Initialize the thread system

15 years agocore: Catch more generic error
Zeeshan Ali (Khattak) [Wed, 10 Jun 2009 14:41:43 +0000 (17:41 +0300)]
core: Catch more generic error

15 years agocore,plugins: Implement and use MetaConfiguration
Zeeshan Ali (Khattak) [Wed, 10 Jun 2009 14:31:21 +0000 (17:31 +0300)]
core,plugins: Implement and use MetaConfiguration

It abstracts Rygel and it's plugins from different Configuration
implementations. It keeps all real configuration sources in a list and
returns the value provided by the first one. If none of them provides
the value, it emits an error.

15 years agocore,ui: Turn Configuration props into getter/setter
Zeeshan Ali (Khattak) [Tue, 9 Jun 2009 14:49:38 +0000 (17:49 +0300)]
core,ui: Turn Configuration props into getter/setter

This is mainly to allow for throwing errors from getters.

15 years agocore,ui: Error out if value not available in config
Zeeshan Ali (Khattak) [Tue, 9 Jun 2009 14:48:57 +0000 (17:48 +0300)]
core,ui: Error out if value not available in config

15 years agocore: Errors for Configuration
Zeeshan Ali (Khattak) [Tue, 9 Jun 2009 14:43:00 +0000 (17:43 +0300)]
core: Errors for Configuration

15 years agocore: Re-introduce Configuration impl. as UserConfig
Zeeshan Ali (Khattak) [Mon, 8 Jun 2009 15:38:12 +0000 (18:38 +0300)]
core: Re-introduce Configuration impl. as UserConfig

Re-introduce old Configuration implementation as UserConfig class.

15 years agocore: Configuration is now an interface
Zeeshan Ali (Khattak) [Mon, 8 Jun 2009 15:37:29 +0000 (18:37 +0300)]
core: Configuration is now an interface

15 years agocore: Add 'general/enabled' key to schemas file
Zeeshan Ali (Khattak) [Mon, 8 Jun 2009 14:35:50 +0000 (17:35 +0300)]
core: Add 'general/enabled' key to schemas file

15 years agocore: Refactor Configuration.upnp_enabled setter
Zeeshan Ali (Khattak) [Mon, 8 Jun 2009 14:04:04 +0000 (17:04 +0300)]
core: Refactor Configuration.upnp_enabled setter

15 years agocore: Remove Rygel from user's autostart list
Zeeshan Ali (Khattak) [Mon, 8 Jun 2009 13:50:38 +0000 (16:50 +0300)]
core: Remove Rygel from user's autostart list

Remove Rygel from user's autostart list if "Enable UPnP/DLNA" flag is
unset.