[MPlayer-cvslog] r33435 - trunk/stream/cache2.c

Clément Bœsch ubitux at gmail.com
Sun May 8 20:35:36 CEST 2011


On Sat, May 07, 2011 at 11:28:56PM +0200, reimar wrote:
> Author: reimar
> Date: Sat May  7 23:28:56 2011
> New Revision: 33435
> 
> Log:
> Avoid warnings about discarding volatile.
> 
> In practice this should not really make a difference, but
> the code is not significantly worse and it is more correct.
> 
> Modified:
>    trunk/stream/cache2.c
> 
> Modified: trunk/stream/cache2.c
> ==============================================================================
> --- trunk/stream/cache2.c	Sat May  7 23:23:22 2011	(r33434)
> +++ trunk/stream/cache2.c	Sat May  7 23:28:56 2011	(r33435)
> @@ -255,6 +255,8 @@ static int cache_fill(cache_vars_t *s)
>  }
>  
>  static int cache_execute_control(cache_vars_t *s) {
> +  double double_res;
> +  unsigned uint_res;
>    static unsigned last;
>    int quit = s->control == -2;
>    if (quit || !s->stream->control) {
> @@ -277,7 +279,8 @@ static int cache_execute_control(cache_v
>      case STREAM_CTRL_GET_CURRENT_TIME:
>      case STREAM_CTRL_SEEK_TO_TIME:
>      case STREAM_CTRL_GET_ASPECT_RATIO:
> -      s->control_res = s->stream->control(s->stream, s->control, &s->control_double_arg);
> +      s->control_res = s->stream->control(s->stream, s->control, &double_res);
> +      s->control_double_arg = double_res;
>        break;
>      case STREAM_CTRL_SEEK_TO_CHAPTER:
>      case STREAM_CTRL_GET_NUM_CHAPTERS:
> @@ -285,7 +288,8 @@ static int cache_execute_control(cache_v
>      case STREAM_CTRL_GET_NUM_ANGLES:
>      case STREAM_CTRL_GET_ANGLE:
>      case STREAM_CTRL_SET_ANGLE:
> -      s->control_res = s->stream->control(s->stream, s->control, &s->control_uint_arg);
> +      s->control_res = s->stream->control(s->stream, s->control, &uint_res);
> +      s->control_uint_arg = uint_res;
>        break;
>      default:
>        s->control_res = STREAM_UNSUPPORTED;

It seems this caused a playback issue:

20:06:03 < ivanich_> mplayer svn commit 33435 breaks smplayer playback
20:07:00 < Compn> any smplayer error messages ?
20:08:10 < ivanich_> no, smplayer gui just freezing but movie continue
playing
20:08:31 < ivanich_> so i can't view smplayer logs
20:09:20 < ivanich_> revert this commit helps

-- 
Clément B.


More information about the MPlayer-cvslog mailing list