Ticket #10002: 300-profile_consts.patch

File 300-profile_consts.patch, 730 bytes (added by Max Kutsevol <max@…>, 6 years ago)

feeds/packages/libs/libdlna/patches/300-profile_consts.patch

  • src/profiles.c

    diff -ruN libdlna-0.2.3.orig/src/profiles.c libdlna-0.2.3/src/profiles.c
    old new  
    205205  for (i = 0; i < ctx->nb_streams; i++) 
    206206  { 
    207207    if (audio_stream == -1 && 
    208         ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO) 
     208        ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) 
    209209    { 
    210210      audio_stream = i; 
    211211      continue; 
    212212    } 
    213213    else if (video_stream == -1 && 
    214              ctx->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO) 
     214             ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) 
    215215    { 
    216216      video_stream = i; 
    217217      continue;