[vlc-devel] Gsoc 2008 timeshift patch 1

Dylan Yudaken dyudaken at gmail.com
Thu Sep 25 18:01:18 CEST 2008


attached with fixes.

Pierre d'Herbemont wrote:
> Thanks Dylan,
>
> Some small comments on minor issues (a simple git commit -a -m "small
> modif" and git rebase -i will easily merge you those modification
> requests).
>
>   
>>      msg_Err(p_access,"I am the Timeshifter!");
>>     
>
> There are a lot of msg_Err() like thise one that should now be msg_Dbg().
>
>   
>>         //should be enomem
>>         return VLC_EGENERIC;
>>     
>
> Why that?
>
>   
>>     for( i = 0;i < p_sys->i_files;i++)
>>     for( i = 0; i < p_sys->i_files; i++ )
>>     
>
> Spacing are not consistents here.
>
> Same here:
>
>   
>> +            }
>>          }
>> +         msleep(150);
>> +
>> +        //msg_Err(p_access,"crit");
>> +             int i;
>> +         /* If FIFO empty AND no data left, try slow down the input*/
>> +         if((block_FifoSize( p_sys->p_fifo) < TIMESHIFT_FIFO_CRITICAL) &&
>> +            (p_sys->i_current_read == p_sys->i_current_write) &&
>> +            !p_access->b_die)
>> +         {
>>     
>
>   
>> +             input_thread_t *p_input = vlc_object_find( p_access, VLC_OBJECT_INPUT, FIND_ANYWHERE );
>>     
>
> This should be FIND_PARENT, I think. vlc_object_find is now deprecated
> but I guess you don't have much alternative for the moment.
>
> +                 //p_sys->i_rate_adjustment =
> There are a lot of commented code. What about removing them, or
> hinting on why they are here?
>
> That's all for my quite superficial review :)
>
> Pierre.
>
> On Sun, Sep 21, 2008 at 11:35 AM, Dylan Yudaken <dyudaken at gmail.com> wrote:
>   
>> Hi everyone,
>>
>> here is the patch for the timeshift module rewrite I did for the google
>> summer of code.
>>
>> its  quite a lot more stable (if you fast forward past the end it doesnt
>> break completely), and could be able to seek in certain situations.
>>
>> The other part of my project ( a lot bigger ) will take some work to get
>> ready for submission
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/listinfo/vlc-devel
>>
>>
>>     
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080925/9c2dfa71/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-GSOC-2008-timeshift-rewrite.patch
Type: application/mbox
Size: 31704 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080925/9c2dfa71/attachment.mbox>


More information about the vlc-devel mailing list