+
+ var_Create( p_demux, "mjpeg-fps", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT );
+ var_Get( p_demux, "mjpeg-fps", &val );
+ p_sys->i_frame_length = 0;
+
+ /* Check for jpeg file extension */
+ p_sys->b_still = false;
+ p_sys->i_still_end = 0;
+ if( demux_IsPathExtension( p_demux, ".jpeg" ) ||
+ demux_IsPathExtension( p_demux, ".jpg" ) )
+ {
+ p_sys->b_still = true;
+ if( val.f_float)
+ {
+ p_sys->i_still_length = 1000000.0 / val.f_float;
+ }
+ else
+ {
+ /* Defaults to 1fps */
+ p_sys->i_still_length = 1000000;
+ }
+ }
+ else if ( val.f_float )
+ {
+ p_sys->i_frame_length = 1000000.0 / val.f_float;
+ }
+