summaryrefslogtreecommitdiffstats
path: root/testing/libdlna/avmedia_type.patch
blob: b4caa1892ef97da2543021775420901fe38a71ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- ./src/profiles.c.orig
+++ ./src/profiles.c
@@ -205,13 +205,13 @@
   for (i = 0; i < ctx->nb_streams; i++)
   {
     if (audio_stream == -1 &&
-        ctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO)
+        ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO)
     {
       audio_stream = i;
       continue;
     }
     else if (video_stream == -1 &&
-             ctx->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO)
+             ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO)
     {
       video_stream = i;
       continue;