Zeeshan Ali (Khattak) [Sun, 14 Feb 2010 16:34:30 +0000 (18:34 +0200)]
media-export: Remove redundant null check
Zeeshan Ali (Khattak) [Sun, 14 Feb 2010 15:30:27 +0000 (17:30 +0200)]
media-export: Initialize fields in constructor only
We shouldn't be doing anything other than instantiation in singleton's
instance getter static method.
Jens Georg [Mon, 8 Feb 2010 10:10:52 +0000 (11:10 +0100)]
media-export: Implement MediaContainer.add_item()
MediaExport now has it's own implementation of MediaContainer that is
specifically meant for adding a complete add_item() implementation to
MediaDBContainer.
Jens Georg [Mon, 8 Feb 2010 10:10:07 +0000 (11:10 +0100)]
media-export: add curstom object factory
Jens Georg [Sun, 31 Jan 2010 15:48:20 +0000 (16:48 +0100)]
media-db: Leverage SQL to update meta-data
Zeeshan Ali (Khattak) [Sat, 6 Feb 2010 13:39:29 +0000 (15:39 +0200)]
tracker: Implement MediaContainer.add_item()
Make sure the new created item goes into the tracker DB and rygel gets
it's actual ID.
Zeeshan Ali (Khattak) [Sat, 6 Feb 2010 12:40:56 +0000 (14:40 +0200)]
tracker: Result of query is kept in the instance
Don't return the result of query from execute() method but keep it in an
instance field since it can be different for differnt types of queries.
Zeeshan Ali (Khattak) [Thu, 4 Feb 2010 16:07:39 +0000 (18:07 +0200)]
tracker: CategoryContainer keeps relavent ItemFactory
CategoryContainer keeps reference to relavent ItemFactory instance.
Zeeshan Ali (Khattak) [Thu, 4 Feb 2010 16:01:29 +0000 (18:01 +0200)]
tracker: ItemFactory provides 'upload_dir'
ItemFactory implementations should provide upload directory path.
Zeeshan Ali (Khattak) [Wed, 3 Feb 2010 15:19:48 +0000 (17:19 +0200)]
tracker: Refined class hierarchy for Tracker queries
Now we have two classes to represent a tracker query: TrackerQuery &
TrackerSelectionQuery.
Zeeshan Ali (Khattak) [Wed, 3 Feb 2010 14:00:29 +0000 (16:00 +0200)]
tracker: Base class for category containers
Zeeshan Ali (Khattak) [Sat, 6 Feb 2010 13:27:07 +0000 (15:27 +0200)]
core: Don't forget to put URI into new MediaItem
MediaContainer.add_item puts URI into newly created MediaItem.
Zeeshan Ali (Khattak) [Sat, 6 Feb 2010 13:05:29 +0000 (15:05 +0200)]
core: Modify error message to avoid potential crash
Zeeshan Ali (Khattak) [Tue, 2 Feb 2010 15:57:29 +0000 (17:57 +0200)]
core: Minor refactor
Zeeshan Ali (Khattak) [Fri, 29 Jan 2010 14:28:31 +0000 (16:28 +0200)]
core: Handle case of no ID during item URI parsing
Zeeshan Ali (Khattak) [Thu, 28 Jan 2010 21:46:24 +0000 (23:46 +0200)]
core: Handle HTTP Post requests
Zeeshan Ali (Khattak) [Thu, 28 Jan 2010 09:41:30 +0000 (11:41 +0200)]
core: Separate class for HTTP GET request
More generalization so that we can easily implement request and request
handler classes for other HTTP methods (e.g POST). This change also
implies renaming of HTTPRequestHander to HTTPGetHandler.
Zeeshan Ali (Khattak) [Mon, 1 Feb 2010 14:55:57 +0000 (16:55 +0200)]
core: Move get_writable method to MediaObject
Move get_writable method from MediaContainer to MediaObject.
Zeeshan Ali (Khattak) [Wed, 27 Jan 2010 17:47:40 +0000 (19:47 +0200)]
core: Micro coding-style fix
Zeeshan Ali (Khattak) [Tue, 26 Jan 2010 15:39:56 +0000 (17:39 +0200)]
core: Implement 'CreateObject' action of CDS
Currently we can only deal with 'no URI provided' case, i-e upload but OTOH
actual uploading isn't implemented yet. :)
Zeeshan Ali (Khattak) [Tue, 26 Jan 2010 15:36:00 +0000 (17:36 +0200)]
core: Add MediaContainer.get_writable()
A new method that fetches a GLib.File object for any writable URI
available for the container.
Zeeshan Ali (Khattak) [Tue, 26 Jan 2010 15:03:15 +0000 (17:03 +0200)]
core: Support for 'place holder' items
Items could be marked as 'place holder'. It means items that do not yet
have any media (empty) available for them.
Zeeshan Ali (Khattak) [Tue, 26 Jan 2010 15:00:57 +0000 (17:00 +0200)]
core: Provide 'importUri' for all items
Zeeshan Ali (Khattak) [Tue, 26 Jan 2010 14:53:24 +0000 (16:53 +0200)]
core: Use 'this' keyword for more readable code
Zeeshan Ali (Khattak) [Mon, 25 Jan 2010 16:57:27 +0000 (18:57 +0200)]
core: HTTItemURI creates the whole URI
Some parts of URI creation was still in HTTPServer.
Zeeshan Ali (Khattak) [Mon, 25 Jan 2010 16:28:00 +0000 (18:28 +0200)]
core: HTTPItemURI gets HTTPServer reference
HTTPItemURI gets reference to associated HTTPServer instance.
Zeeshan Ali (Khattak) [Mon, 25 Jan 2010 16:21:49 +0000 (18:21 +0200)]
core: Micro indentation fix
Zeeshan Ali (Khattak) [Mon, 25 Jan 2010 16:18:58 +0000 (18:18 +0200)]
core: No need to pass around the protocol string
Zeeshan Ali (Khattak) [Wed, 20 Jan 2010 15:44:20 +0000 (17:44 +0200)]
core: Containers without URIs are 'restricted'
Zeeshan Ali (Khattak) [Wed, 20 Jan 2010 15:07:39 +0000 (17:07 +0200)]
tracker: Category containers provide URIs
Category containers (Music, Videos, Pictures) should provides URIs
to user's special directories.
Zeeshan Ali (Khattak) [Wed, 3 Feb 2010 13:37:46 +0000 (15:37 +0200)]
core,mediathek: Adapt to new libxml VAPI
Philip Withnall [Sun, 31 Jan 2010 17:05:13 +0000 (17:05 +0000)]
core: A few fixes to satisfy latest valac (0.7.10)
Zeeshan Ali (Khattak) [Wed, 27 Jan 2010 14:32:52 +0000 (16:32 +0200)]
core: A bunch of coding-style fixes
Zeeshan Ali (Khattak) [Sun, 24 Jan 2010 01:49:36 +0000 (03:49 +0200)]
core: Restart application on SIGHUP
Zeeshan Ali (Khattak) [Sat, 23 Jan 2010 22:44:34 +0000 (00:44 +0200)]
core: Simplify HTTPRequest.handle_item_request()
Zeeshan Ali (Khattak) [Sat, 23 Jan 2010 22:13:58 +0000 (00:13 +0200)]
core: Micro coding-style fix
Zeeshan Ali (Khattak) [Sat, 23 Jan 2010 22:11:33 +0000 (00:11 +0200)]
core: Fix cancellation of SeekableResponse
We kept on waiting for libsoup to signal us that bytes sent have been
received by the client even after the client has already closed the
connection and libsoup had informed us about that.
Zeeshan Ali (Khattak) [Thu, 7 Jan 2010 17:39:20 +0000 (19:39 +0200)]
core: Clean-up MediaDBContainer code
Mostly minor coding-style fixes.
Zeeshan Ali (Khattak) [Thu, 7 Jan 2010 17:17:09 +0000 (19:17 +0200)]
core: Remove unneeded newline
Zeeshan Ali (Khattak) [Thu, 7 Jan 2010 17:16:29 +0000 (19:16 +0200)]
core: Better error message from SearchCriteriaParser
Zeeshan Ali (Khattak) [Thu, 7 Jan 2010 17:15:20 +0000 (19:15 +0200)]
core: Add string property to get current parser context
Zeeshan Ali (Khattak) [Thu, 7 Jan 2010 16:54:58 +0000 (18:54 +0200)]
core: Rename SearchCriteriaParser parsing methods
More descriptive name for SearchCriteriaParser parsing methods.
Zeeshan Ali (Khattak) [Thu, 7 Jan 2010 16:29:15 +0000 (18:29 +0200)]
core: Major refactoring of SearchCriteriaParser
- Rename Symbol to SearchCriteriaSymbol.
- Rename SearchCriteriaSymbol to SearchCriteriaToken.
- Add private prop to fetch current parser token as SearchCriteriaSymbol.
- No need to convert enum values to int everywhere.
- SearchCriteriaSymbol should also include symbols that are already covered by
GUPnP.SearchCriteriaOp but the common symbols must contain the same values.
Zeeshan Ali (Khattak) [Thu, 7 Jan 2010 14:46:57 +0000 (16:46 +0200)]
core: SearchCriteriaSymbol should be private
Zeeshan Ali (Khattak) [Thu, 7 Jan 2010 14:34:46 +0000 (16:34 +0200)]
core: No need for 'construct'
Jens Georg [Thu, 31 Dec 2009 01:39:49 +0000 (02:39 +0100)]
media-db: Use correct SQL function for "!="
Jens Georg [Sat, 21 Nov 2009 13:47:37 +0000 (14:47 +0100)]
media-db: Refactor search translator
Jens Georg [Sat, 21 Nov 2009 00:21:52 +0000 (01:21 +0100)]
media-db: Rename get_children_with_filter
The function is not fetching children but arbitrary objects.
Jens Georg [Sat, 21 Nov 2009 00:21:04 +0000 (01:21 +0100)]
media-db: Return empty result on unknown criteria
Jens Georg [Fri, 20 Nov 2009 23:54:04 +0000 (00:54 +0100)]
media-db: No need to reparent
Jens Georg [Fri, 20 Nov 2009 21:26:30 +0000 (22:26 +0100)]
media-db: Implement search on MediaDBContainer
This features a first draft of translation from SearchExpression to an SQL
where clause.
Jens Georg [Sat, 2 Jan 2010 18:53:41 +0000 (19:53 +0100)]
core: Rewrite SearchCriteriaParser
This is a rewrite of SearchCriteriaParser to use GScanner directly
Zeeshan Ali (Khattak) [Tue, 19 Jan 2010 15:00:37 +0000 (17:00 +0200)]
core: Correct condition for byte-seeking
We were trying to byte-seek even in case of transcoding.
Zeeshan Ali (Khattak) [Tue, 19 Jan 2010 14:00:57 +0000 (16:00 +0200)]
core: Correctly handle boolean commandline options
Zeeshan Ali (Khattak) [Mon, 18 Jan 2010 16:54:55 +0000 (18:54 +0200)]
Revert "core: Push data directly from gst thread"
This reverts commit
e5cfcf87fc4bf3f2e82b860ec95388e84f8410f7.
Conflicts:
src/rygel/rygel-live-response.vala
Zeeshan Ali (Khattak) [Mon, 18 Jan 2010 16:53:12 +0000 (18:53 +0200)]
Revert "core: Synchronous streaming of LiveResponse"
This reverts commit
0189add0b5c1d1aeb0c0d9e93ccff6290a7eafd2.
Zeeshan Ali (Khattak) [Wed, 13 Jan 2010 00:52:32 +0000 (02:52 +0200)]
core: Adapt to new Base64.decode() VAPI
Zeeshan Ali (Khattak) [Tue, 27 Oct 2009 13:55:45 +0000 (15:55 +0200)]
core: Move some code from LiveResponse to GstUtils
Zeeshan Ali (Khattak) [Tue, 12 Jan 2010 16:52:36 +0000 (18:52 +0200)]
core: Synchronous streaming of LiveResponse
Now we wait for the chunk to be actually sent to the client before
we process any more chunks from fakesink.
Zeeshan Ali (Khattak) [Tue, 12 Jan 2010 16:13:21 +0000 (18:13 +0200)]
core: Better name for continuation field
Zeeshan Ali (Khattak) [Tue, 12 Jan 2010 15:57:19 +0000 (17:57 +0200)]
core: Push data directly from gst thread
Instead of registering an idle func to push data, simply push it directly
from the gst thread. We only need to be sure that nobody else accesses
the message from the main thread while we do this.
Zeeshan Ali (Khattak) [Tue, 12 Jan 2010 15:32:30 +0000 (17:32 +0200)]
test: Micro simplification of code
Zeeshan Ali (Khattak) [Tue, 12 Jan 2010 15:30:43 +0000 (17:30 +0200)]
test: Remove redundant 'using' statements
Zeeshan Ali (Khattak) [Tue, 12 Jan 2010 15:28:16 +0000 (17:28 +0200)]
test: Coding style fixes
Zeeshan Ali (Khattak) [Tue, 12 Jan 2010 15:16:46 +0000 (17:16 +0200)]
core: Explicitly set DLNAv1.5 flag
GUPnP AV no longer does this for us.
Zeeshan Ali (Khattak) [Tue, 12 Jan 2010 14:16:54 +0000 (16:16 +0200)]
core: Live response is always sender-paced
Zeeshan Ali (Khattak) [Mon, 11 Jan 2010 17:16:26 +0000 (19:16 +0200)]
core: Indicate support for connection stalling
We support connection stalling for byte-seekable resources, so we should
indicate that.
Zeeshan Ali (Khattak) [Mon, 11 Jan 2010 16:57:57 +0000 (18:57 +0200)]
core: Handle message abortion in HTTPServer
Handle message abortion in HTTPServer rather than HTTPResponse so that
requests could be aborted even early in their life-cycle and to simplify
the code by maximizing the use of GIO.Cancellable. This also fixes the
strange critical when aborting LiveResponse.
Zeeshan Ali (Khattak) [Mon, 11 Jan 2010 16:55:33 +0000 (18:55 +0200)]
core: HTTPRequest now uses it's own Cancellable
HTTPRequest now uses it's own Cancellable rather than that of HTTPServer.
Zeeshan Ali (Khattak) [Mon, 11 Jan 2010 16:54:47 +0000 (18:54 +0200)]
core: HTTPServer keeps a list of active requests
Zeeshan Ali (Khattak) [Tue, 5 Jan 2010 18:10:07 +0000 (20:10 +0200)]
Enable check for Vala if any stamp file is absent
Enable check for Vala even if not asked to do so if any of the stamp files
are absent.
Zeeshan Ali (Khattak) [Tue, 5 Jan 2010 17:50:46 +0000 (19:50 +0200)]
core: Fix condition for partial content transfer
Zeeshan Ali (Khattak) [Tue, 29 Dec 2009 15:58:03 +0000 (17:58 +0200)]
build: Correct linker argument order
This should fix the build issue on Gentoo.
Zeeshan Ali (Khattak) [Mon, 4 Jan 2010 00:28:15 +0000 (02:28 +0200)]
core,ui,plugins: Work-around for automake bug
According to Nathan: It scrapes VALAFLAGS looking for options which
specify files, like -H or, significantly, --gir. Unfortunately, rather
than actually checking correctly, it does it in a weird "why did anybody
ever think that was the right thing to do?" kind of way. It has a list of
flags which specify files, and then if a flag is a substring of any of
those flags, it is considered to actually be one. So it mistakes "-g" for
"--gir" and assumes the following argument should be included when you
make dist. Until automake is fixed, you can fool it by putting -g at the
end of VALAFLAGS.
Jens Georg [Sat, 2 Jan 2010 20:25:24 +0000 (21:25 +0100)]
core: Limit search slice to result size
This prevents a crtitcal on search.
Zeeshan Ali (Khattak) [Sun, 3 Jan 2010 00:19:14 +0000 (02:19 +0200)]
core: Fix a spelling mistake in error message
Zeeshan Ali (Khattak) [Mon, 28 Dec 2009 16:12:32 +0000 (18:12 +0200)]
core: Throw error on invalid URI
Zeeshan Ali (Khattak) [Mon, 28 Dec 2009 16:07:28 +0000 (18:07 +0200)]
core: Clean-up & indent recently added code
Zeeshan Ali (Khattak) [Mon, 28 Dec 2009 16:03:46 +0000 (18:03 +0200)]
core: Rename ItemUri to HTTPItemURI
Jens Georg [Mon, 7 Dec 2009 14:31:53 +0000 (15:31 +0100)]
core: encode itemID base64
We need to encode the itemID base64 since it might contain slashes but the
context's HTTP server is created without SOUP_SERVER_RAW_PATHS enabled which
translates the URI encoded slashes to real slashes before handing the request
to us.
Jens Georg [Sat, 5 Dec 2009 02:49:09 +0000 (03:49 +0100)]
core: Fix uri creation and parsing
Jens Georg [Sat, 5 Dec 2009 02:30:16 +0000 (03:30 +0100)]
core: Minor formatting fix
Jens Georg [Wed, 25 Nov 2009 10:38:03 +0000 (11:38 +0100)]
core: Move uri generating and parsing to own class
Jens Georg [Wed, 4 Nov 2009 11:52:48 +0000 (12:52 +0100)]
core: Modify URI generation scheme
Some UPnP devices cannot cope with urls containing GET parameters and just
skip everything after the "?". This commit modifies the uris to use different
paths instead of GET parameters.
Zeeshan Ali (Khattak) [Mon, 28 Dec 2009 15:41:57 +0000 (17:41 +0200)]
core,ui,plugins: Vala debugging symbols
Tell valac to put debugging symbols to generated code so gdb can refer to
lines in the Vala source code.
Yakup Akbay [Mon, 7 Dec 2009 09:18:21 +0000 (11:18 +0200)]
Fix typo in GetCurrentConnectionInfo action response.
This fixes failures for DLNA CTT test cases 7.2.14.2 and 7.2.14.3.
Zeeshan Ali (Khattak) [Tue, 22 Dec 2009 13:59:59 +0000 (15:59 +0200)]
build: Require latest vala release (0.7.10)
Zeeshan Ali (Khattak) [Wed, 23 Dec 2009 15:13:17 +0000 (17:13 +0200)]
tracker: Act on new config options
Now user can actually choose which kind of media she wants to share.
Zeeshan Ali (Khattak) [Wed, 23 Dec 2009 14:12:28 +0000 (16:12 +0200)]
tracker: Minor refactoring of SearchContainer
Group-up private and public methods.
Zeeshan Ali (Khattak) [Wed, 23 Dec 2009 14:05:26 +0000 (16:05 +0200)]
tracker: Update containers on changes to subjects
For the moment we are only doing this in MetadataValues but since all
top-level containers are instances of MetadataValues (or subclass), we
are safe.
Zeeshan Ali (Khattak) [Wed, 23 Dec 2009 13:51:38 +0000 (15:51 +0200)]
tracker: Bind Resources.Class D-Bus interface
Zeeshan Ali (Khattak) [Wed, 23 Dec 2009 13:49:37 +0000 (15:49 +0200)]
core: Add SimpleContainer.clear()
API for clearing the SimpleContainer.
Zeeshan Ali (Khattak) [Tue, 22 Dec 2009 15:34:32 +0000 (17:34 +0200)]
tracker: No need to create keychains on demand
This should give us some speed boost.
Zeeshan Ali (Khattak) [Mon, 21 Dec 2009 18:17:55 +0000 (20:17 +0200)]
tracker: Simplified handling of nested properties
Simplified handling of nested properties using new chainable triplets and
recursion.
Zeeshan Ali (Khattak) [Mon, 21 Dec 2009 18:09:01 +0000 (20:09 +0200)]
tracker: Allow triplets to be chainable
Allow a triplet to have another triplet as it's object.
Zeeshan Ali (Khattak) [Mon, 21 Dec 2009 13:22:12 +0000 (15:22 +0200)]
tracker: Avoid duplicate triplets
Zeeshan Ali (Khattak) [Fri, 11 Dec 2009 14:36:15 +0000 (16:36 +0200)]
tracker: Correct keychain for album and artist
Zeeshan Ali (Khattak) [Fri, 11 Dec 2009 14:23:10 +0000 (16:23 +0200)]
tracker: Item factory provides key chains, not keys
This is to allow item factories to provide complex (chained) properties.
Zeeshan Ali (Khattak) [Fri, 11 Dec 2009 13:10:05 +0000 (15:10 +0200)]
tracker: Remove unneeded 'using' statements
Zeeshan Ali (Khattak) [Fri, 11 Dec 2009 13:08:41 +0000 (15:08 +0200)]
tracker: Prefer ArrayList over vala arrays