Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

list children crashes if the DMS do not provide a ContentDirectory Service #133

Description

@markdryan

This is a weird one. I encountered this problem testing against a DMR that was claiming to be a DMS, i.e., it claimed to be a MediaServer1 device but it implemented AvTransport instead of ContentDirectory. dLeyna-server discovered the device correctly but crashed when attempting to perform a list children. It crashes as it always assumes that the service proxy is non NULL. As the service proxy is NULL the action is not created. We then complete the task but we don't have an error object either so we crash.

My feeling is that we should fix this by simply not exposing devices that do not provide a content directory service. Then the rest of the dLeyna-code that assumes that the service proxy is not NULL will be correct.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions