GNOME Bugzilla – Bug 708027
query cannot be used when looking up media factories
Last modified: 2014-06-22 13:54:19 UTC
A subclass to GstRTSPMountPoints cannot override the default behaviour of _match() to use the path+query instead of just patch when looking up a media factory.
Created attachment 254857 [details] [review] made match() vmethod that takes url Made match() virtual and changed the path argument to url to make it possible to use the query string in the url when looking up factories.
It not right yet.. The problem is that if you use the query parameters to find the factory, the logic to cache the factory (that only works on the matched part of the original uri) doesn't work anymore. I think what you want is to have a *separate* method to transform the URI into a mount path and then use that mount path to find and cache the factory.
Maybe this: commit e3fded2cec897a2ec003450607b916cc1601fd2d Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Mon Sep 16 17:16:49 2013 +0200 client: map URL to path in requests commit 952aa309dcfc8389fc51b119d984407d7f75f34f Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Mon Sep 16 16:47:40 2013 +0200 mount-points: make vmethod to make path from uri Make a vmethod to transform an url into a path. The path is then used to lookup the factory. This makes it possible to also use other bits of the url, such as the query parameters, to locate the factory.
(In reply to comment #3) > Maybe this: Yeah, that's better. Will test it first thing tomorrow.
It works fine.