Results 1 to 2 of 2

Thread: setvideosurfacetexture failed -22

Hybrid View

  1. #1
    Newbie
    Join Date
    Apr 2013
    Posts
    2

    setvideosurfacetexture failed -22

    Hi,
    I was trying to get OpenMAX video working on a rk3066 tablet with android 4.1.1 on the NDK.

    I couldnt get it to work, but when i tried "adb logcat" i noticed a setvideosurfacetexture failed -22 error.
    I googled for relevant information and only found this
    stackoverflow.com/questions/12072376/setvideosurfacetexture-failed-22-in-mediaplayer

    apparantly it has something todo with a window, so i tried to null the nativeWindow pointer,
    which resulted in that it kinda worked and i could hear sound, but of cause didn't get video.
    I cant do much with the info in the article.
    Is this something i can do a workaround for, or is this a bug in android or OpenMax ?

    Also i couldnt find much info on how to define a region of the display where to play the
    video.

    Greetings.. AP.

  2. #2
    Newbie
    Join Date
    Apr 2013
    Posts
    2
    Quote Originally Posted by APSpijkerman View Post
    Hi,
    I was trying to get OpenMAX video working on a rk3066 tablet with android 4.1.1 on the NDK.

    I couldnt get it to work, but when i tried "adb logcat" i noticed a setvideosurfacetexture failed -22 error.
    I googled for relevant information and only found this
    stackoverflow.com/questions/12072376/setvideosurfacetexture-failed-22-in-mediaplayer

    apparantly it has something todo with a window, so i tried to null the nativeWindow pointer,
    which resulted in that it kinda worked and i could hear sound, but of cause didn't get video.
    I cant do much with the info in the article.
    Is this something i can do a workaround for, or is this a bug in android or OpenMax ?

    Also i couldnt find much info on how to define a region of the display where to play the
    video.

    Greetings.. AP.

    Never mind .. i seem to have found a workaround

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •