archienz / ps3mediaserver

Automatically exported from code.google.com/p/ps3mediaserver
0 stars 0 forks source link

Illegal argument exception in DLNAResource with Omisys media player #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some DLNA client can ask for resources without specifying a count. In this
case count = 0 in 
public ArrayList<DLNAResource> getDLNAResources(String objectId, boolean
children, int start, int count) throws IOException {
method of DLNAResource and later, you try to create a 0 length
ArrayBlockingQueue.

you could add this lines before creating the queue to avoid the problem.

                if (count == 0) {
                    count = resource.children.size();
                }

Original issue reported on code.google.com by fabrice....@gmail.com on 3 Jan 2009 at 5:42

GoogleCodeExporter commented 9 years ago
Hi :p

if all issues could be this simple :p

Original comment by ps3mediaserver@gmail.com on 3 Jan 2009 at 10:13

GoogleCodeExporter commented 9 years ago

Original comment by ps3mediaserver@gmail.com on 4 Jan 2009 at 6:43