Re: [PATCH spice-server 1/7] Rename RedStreamClipItem to VideoStreamClipItem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> Avoid confusion with RedStream which is a totally unrelated object.
> 
> Signed-off-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
> ---
>  server/dcc-send.c     |  4 ++--
>  server/dcc.c          |  2 +-
>  server/video-stream.c | 10 +++++-----
>  server/video-stream.h |  6 +++---
>  4 files changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/server/dcc-send.c b/server/dcc-send.c
> index d94615a93..84bc0906d 100644
> --- a/server/dcc-send.c
> +++ b/server/dcc-send.c
> @@ -2193,7 +2193,7 @@ static void marshall_stream_start(RedChannelClient
> *rcc,
>  
>  static void marshall_stream_clip(RedChannelClient *rcc,
>                                   SpiceMarshaller *base_marshaller,
> -                                 RedStreamClipItem *item)
> +                                 VideoStreamClipItem *item)
>  {
>      DisplayChannelClient *dcc = DISPLAY_CHANNEL_CLIENT(rcc);
>      VideoStreamAgent *agent = item->stream_agent;
> @@ -2404,7 +2404,7 @@ void dcc_send_item(RedChannelClient *rcc, RedPipeItem
> *pipe_item)
>          break;
>      }
>      case RED_PIPE_ITEM_TYPE_STREAM_CLIP:
> -        marshall_stream_clip(rcc, m, SPICE_UPCAST(RedStreamClipItem,
> pipe_item));
> +        marshall_stream_clip(rcc, m, SPICE_UPCAST(VideoStreamClipItem,
> pipe_item));
>          break;
>      case RED_PIPE_ITEM_TYPE_STREAM_DESTROY: {
>          StreamCreateDestroyItem *item =
>          SPICE_UPCAST(StreamCreateDestroyItem, pipe_item);
> diff --git a/server/dcc.c b/server/dcc.c
> index 628b33edb..fb5009e91 100644
> --- a/server/dcc.c
> +++ b/server/dcc.c
> @@ -629,7 +629,7 @@ static void dcc_stop(DisplayChannelClient *dcc)
>  
>  void dcc_video_stream_agent_clip(DisplayChannelClient* dcc, VideoStreamAgent
>  *agent)
>  {
> -    RedStreamClipItem *item = red_stream_clip_item_new(agent);
> +    VideoStreamClipItem *item = video_stream_clip_item_new(agent);
>      int n_rects;
>  
>      item->clip_type = SPICE_CLIP_TYPE_RECTS;
> diff --git a/server/video-stream.c b/server/video-stream.c
> index 2dc63cba7..65da3f8a0 100644
> --- a/server/video-stream.c
> +++ b/server/video-stream.c
> @@ -163,10 +163,10 @@ void video_stream_agent_unref(DisplayChannel *display,
> VideoStreamAgent *agent)
>      video_stream_unref(display, agent->stream);
>  }
>  
> -static void red_stream_clip_item_free(RedPipeItem *base)
> +static void video_stream_clip_item_free(RedPipeItem *base)
>  {
>      g_return_if_fail(base != NULL);
> -    RedStreamClipItem *item = SPICE_UPCAST(RedStreamClipItem, base);
> +    VideoStreamClipItem *item = SPICE_UPCAST(VideoStreamClipItem, base);
>      DisplayChannel *display = DCC_TO_DC(item->stream_agent->dcc);
>  
>      g_return_if_fail(item->base.refcount == 0);
> @@ -176,11 +176,11 @@ static void red_stream_clip_item_free(RedPipeItem
> *base)
>      g_free(item);
>  }
>  
> -RedStreamClipItem *red_stream_clip_item_new(VideoStreamAgent *agent)
> +VideoStreamClipItem *video_stream_clip_item_new(VideoStreamAgent *agent)
>  {
> -    RedStreamClipItem *item = g_new(RedStreamClipItem, 1);
> +    VideoStreamClipItem *item = g_new(VideoStreamClipItem, 1);
>      red_pipe_item_init_full(&item->base, RED_PIPE_ITEM_TYPE_STREAM_CLIP,
> -                            red_stream_clip_item_free);
> +                            video_stream_clip_item_free);
>  
>      item->stream_agent = agent;
>      agent->stream->refs++;
> diff --git a/server/video-stream.h b/server/video-stream.h
> index 33bbd6bd4..a4d149816 100644
> --- a/server/video-stream.h
> +++ b/server/video-stream.h
> @@ -86,14 +86,14 @@ typedef struct VideoStreamAgent {
>  #endif
>  } VideoStreamAgent;
>  
> -typedef struct RedStreamClipItem {
> +typedef struct VideoStreamClipItem {
>      RedPipeItem base;
>      VideoStreamAgent *stream_agent;
>      int clip_type;
>      SpiceClipRects *rects;
> -} RedStreamClipItem;
> +} VideoStreamClipItem;
>  
> -RedStreamClipItem *red_stream_clip_item_new(VideoStreamAgent *agent);
> +VideoStreamClipItem *video_stream_clip_item_new(VideoStreamAgent *agent);
>  
>  typedef struct StreamCreateDestroyItem {
>      RedPipeItem base;

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

Frediano
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]