implement filter for creating SOURCE objects

because sometimes you might want to use the source for the playlist as an object that contains attributes that are not compatible with the SOURCE element I implemented a filter that would allow non-compatible elements to be filtered out.