Changeset 959:e3d6dc21f753 in mediastreamer2 for src/videostream.c


Ignore:
Timestamp:
May 10, 2010 3:30:31 PM (3 years ago)
Author:
unknown <smorlat@…>
Branch:
default
Children:
960:c7db549fdf08, 961:3ff451d1b61b
Message:

don't set fps when static image is used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/videostream.c

    r935 r959  
    263263        ms_message("Setting vsize=%ix%i, fps=%f",vsize.width,vsize.height,fps); 
    264264        /* configure the filters */ 
    265         ms_filter_call_method(stream->source,MS_FILTER_SET_FPS,&fps); 
     265        if (ms_filter_get_id(stream->source)!=MS_STATIC_IMAGE_ID) 
     266                ms_filter_call_method(stream->source,MS_FILTER_SET_FPS,&fps); 
    266267        ms_filter_call_method(stream->source,MS_FILTER_SET_VIDEO_SIZE,&vsize); 
    267268 
     
    375376        /* configure the filters */ 
    376377        ms_filter_call_method(stream->source,MS_FILTER_SET_VIDEO_SIZE,&vsize); 
    377         ms_filter_call_method(stream->source,MS_FILTER_SET_FPS,&fps); 
     378        if (ms_filter_get_id(stream->source)!=MS_STATIC_IMAGE_ID) 
     379                ms_filter_call_method(stream->source,MS_FILTER_SET_FPS,&fps); 
    378380        ms_filter_call_method(stream->source,MS_FILTER_GET_PIX_FMT,&format); 
    379381        ms_filter_call_method(stream->source,MS_FILTER_GET_VIDEO_SIZE,&vsize); 
Note: See TracChangeset for help on using the changeset viewer.