[MPlayer-cvslog] r19155 - trunk/libvo/vo_mpegpes.c
Lazy Ranma
ranma at 274.ru
Sat Jul 22 14:48:23 CEST 2006
> Author: nicodvb
> Date: Sat Jul 22 12:07:04 2006
> New Revision: 19155
> Modified:
> trunk/libvo/vo_mpegpes.c
> Log:
> my_write() must return the bytes written
> Modified: trunk/libvo/vo_mpegpes.c
> ==============================================================================
> --- trunk/libvo/vo_mpegpes.c (original)
> +++ trunk/libvo/vo_mpegpes.c Sat Jul 22 12:07:04 2006
> @@ -191,10 +191,11 @@
> }
>
>
> -static void my_write(unsigned char* data,int len){
> +static int my_write(unsigned char* data,int len){
> #ifdef HAVE_DVB
> #define NFD 2
> struct pollfd pfd[NFD];
> + int orig_len = len;
>
> // printf("write %d bytes \n",len);
>
> @@ -222,6 +223,7 @@
> #else
> write(vo_mpegpes_fd,data,len); // write to file
> #endif
> + return orig_len;
> }
Compilation will fail if HAVE_DVB is undefined:
vo_mpegpes.c: In function `my_write':
vo_mpegpes.c:226: error: `orig_len' undeclared (first use in this function)
More information about the MPlayer-cvslog
mailing list