[FFmpeg-trac] #141(undetermined:new): ffplay displays black screen with image

FFmpeg trac at avcodec.org
Fri Apr 29 22:01:23 CEST 2011


#141: ffplay displays black screen with image
------------------------+---------------------------
Reporter:  ami_stuff    |       Owner:
    Type:  defect       |      Status:  new
Priority:  normal       |   Component:  undetermined
 Version:  unspecified  |  Resolution:
Keywords:               |  Blocked By:
Blocking:               |  Reproduced:  0
Analyzed:  0            |
------------------------+---------------------------

Comment (by ami_stuff):

 Ok, I completly forgot about this issue.

 {{{
 Author: michael
 Date: Wed Mar 10 16:39:31 2010
 New Revision: 22433

 Log:
 Do not call SDL_SetVideoMode() with the same size as previously
 as this blanks the window.

 Modified:
    trunk/ffplay.c

 Modified: trunk/ffplay.c
 ==============================================================================
 --- trunk/ffplay.c      Wed Mar 10 15:26:15 2010        (r22432)
 +++ trunk/ffplay.c      Wed Mar 10 16:39:31 2010        (r22433)
 @@ -965,6 +965,10 @@ static int video_open(VideoState *is){
          w = 640;
          h = 480;
      }
 +    if(screen && is->width == screen->w && screen->w == w
 +       && is->height== screen->h && screen->h == h)
 +        return 0;
 +
  #ifndef __APPLE__
      screen = SDL_SetVideoMode(w, h, 0, flags);
  #else
 }}}

 I think the problem is that under amigaos, in fullscreen mode, the
 borderless window
 with the size of image is opened (so as a result 0 is always returned when
 the user
 try to toggle the screen), but on windows or linux the image is resized to
 the screen
 resolution, so 0 is not returned and everything works correctly, but...

 to reproduce the problem please run ffplay with your screen resolution
 (for example
 "ffplay -x 1280 -y 1024 a.jpg") and press the "f" key - this will not work
 as on amigaos.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/141#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list