Skip to content

Non-exhaustive pattern in function toEnum (Constants.hsc) #5

@noughtmare

Description

@noughtmare

I've built a haskell implementation of the Hello World example on http://docs.gstreamer.com/pages/viewpage.action?pageId=327735.
When I play videos like http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_50mb.mp4 I get this error:
Media/Streaming/GStreamer/Core/Constants.hsc:(337,5)-(360,53): Non-exhaustive patterns in function toEnum.

Edit:
I took a closer look at the Int that was passed to the toEnum function and it turns out to be the number 16777216, I think this is the GST_MESSAGE_QOS.
Can this be fixed by adding the any message to the toEnum function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions