Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10002 closed defect (fixed)

[package] libdlna 0.2.3 needs to be fixed, did not build

Reported by: pekmop1024 <cat@…> Owned by: jow
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Due to changes in ffmpeg CODEC_TYPE_AUDIO and CODEC_TYPE_VIDEO in profiles.c must be changed to AVMEDIA_TYPE_AUDIO and AVMEDIA_TYPE_VIDEO for successful compilation.

Attachments (1)

300-profile_consts.patch (730 bytes) - added by Max Kutsevol <max@…> 6 years ago.
feeds/packages/libs/libdlna/patches/300-profile_consts.patch

Download all attachments as: .zip

Change History (6)

comment:1 Changed 6 years ago by Martin G. <kommerz@…>

Confirming..
profiles.c is in the libdlna-src? An Idea for a quick fix?

comment:2 Changed 6 years ago by jow

  • Owner changed from developers to jow
  • Status changed from new to accepted

comment:3 Changed 6 years ago by max@…

I've done a patch. Compiles for me.

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

diff -ruN libdlna-0.2.3.orig/src/profiles.c libdlna-0.2.3/src/profiles.c
--- libdlna-0.2.3.orig/src/profiles.c	2007-11-26 22:47:43.000000000 +0200
+++ libdlna-0.2.3/src/profiles.c	2011-09-01 11:29:42.190297606 +0300
@@ -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;

Changed 6 years ago by Max Kutsevol <max@…>

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

comment:4 Changed 6 years ago by nico

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in [28400], thanks!

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.