[vlc-devel] [PATCH] demux: adaptative: fix compilation

Hugo Beauzée-Luyssen hugo at beauzee.fr
Mon Jul 27 10:54:03 CEST 2015


On 27/07/2015 05:59, Filipe Cabecinhas wrote:
> How would that be a “fix compilation”?
> How is being less specific better?
>
>    Filipe
>
>> On Jul 26, 2015, at 20:55, KO Myung-Hun <komh78 at gmail.com> wrote:
>>
>> ---
>> modules/demux/adaptative/Streams.cpp | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/modules/demux/adaptative/Streams.cpp b/modules/demux/adaptative/Streams.cpp
>> index 746c065..cad9d7f 100644
>> --- a/modules/demux/adaptative/Streams.cpp
>> +++ b/modules/demux/adaptative/Streams.cpp
>> @@ -34,7 +34,7 @@ using namespace adaptative::logic;
>> Stream::Stream(demux_t * demux_, const StreamFormat &format_)
>> {
>>      p_demux = demux_;
>> -    type = StreamType::UNKNOWN;
>> +    type = UNKNOWN;
>>      format = format_;
>>      output = NULL;
>>      adaptationLogic = NULL;
>> --
>> 1.9.5
>>

Hi,

Scoped enumerations aren't part of C++98, so creating an enum doesn't 
create a "namespace". This patch makes perfect sense as far as I'm 
concerned.

Regards,

-- 
Hugo Beauzée-Luyssen



More information about the vlc-devel mailing list