Merge lp:~ubuntu-branches/ubuntu/oneiric/mediatomb/oneiric-201106030110 into lp:ubuntu/oneiric/mediatomb

Proposed by James Westby
Status: Rejected
Rejected by: James Westby
Proposed branch: lp:~ubuntu-branches/ubuntu/oneiric/mediatomb/oneiric-201106030110
Merge into: lp:ubuntu/oneiric/mediatomb
Diff against target: 126 lines (+108/-0) (has conflicts)
3 files modified
debian/mediatomb-daemon.mediatomb.upstart (+34/-0)
debian/patches/libav_0.7_support.patch (+64/-0)
debian/patches/mediatomb-0.12.1-gcc46.patch (+10/-0)
Conflict adding file debian/mediatomb-daemon.mediatomb.upstart.  Moved existing file to debian/mediatomb-daemon.mediatomb.upstart.moved.
Conflict adding file debian/patches/libav_0.7_support.patch.  Moved existing file to debian/patches/libav_0.7_support.patch.moved.
Conflict adding file debian/patches/mediatomb-0.12.1-gcc46.patch.  Moved existing file to debian/patches/mediatomb-0.12.1-gcc46.patch.moved.
To merge this branch: bzr merge lp:~ubuntu-branches/ubuntu/oneiric/mediatomb/oneiric-201106030110
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+63321@code.launchpad.net

Description of the change

The package history in the archive and the history in the bzr branch differ. As the archive is authoritative the history of lp:ubuntu/oneiric/mediatomb now reflects that and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/oneiric/mediatomb/oneiric-201106030110. A merge should be performed if necessary.

To post a comment you must log in.

Unmerged revisions

20. By Luke Yelavich

releasing version 0.12.1-0ubuntu2

19. By Luke Yelavich

Add changelog entry to cover libav patch

18. By Luke Yelavich

Merge lp:~vanvugt/ubuntu/oneiric/mediatomb/fix-770964-784431

17. By Luke Yelavich

Merge lp:~broder/ubuntu/oneiric/mediatomb/fix-212441-and-770964 which is based
on lp:vanvugt/ubuntu/oneiric/mediatomb/fix-212441

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'debian/mediatomb-daemon.mediatomb.upstart'
2--- debian/mediatomb-daemon.mediatomb.upstart 1970-01-01 00:00:00 +0000
3+++ debian/mediatomb-daemon.mediatomb.upstart 2011-06-03 01:15:53 +0000
4@@ -0,0 +1,34 @@
5+description "MediaTomb UPnP media server"
6+author "Daniel van Vugt <vanvugt in launchpad>"
7+
8+start on (local-filesystems and net-device-up IFACE!=lo)
9+stop on runlevel [!2345]
10+respawn
11+
12+env CONFIGXML=/etc/mediatomb/config.xml
13+env LOGFILE=/var/log/mediatomb.log
14+env DEFAULT=/etc/default/mediatomb
15+
16+script
17+ [ -r $DEFAULT ] && . $DEFAULT
18+ [ ! $USER ] && USER=root
19+ [ ! $GROUP ] && GROUP=$USER
20+ if [ -n "$INTERFACE" ]; then
21+ INTERFACE_ARG="-e $INTERFACE"
22+ $ROUTE_ADD $INTERFACE
23+ fi
24+ exec mediatomb \
25+ -c $CONFIGXML \
26+ -u $USER \
27+ -g $GROUP \
28+ -l $LOGFILE \
29+ $INTERFACE_ARG \
30+ $OPTIONS
31+end script
32+
33+post-stop script
34+ [ -r $DEFAULT ] && . $DEFAULT
35+ if [ -n "$INTERFACE" ]; then
36+ $ROUTE_DEL $INTERFACE
37+ fi
38+end script
39
40=== renamed file 'debian/mediatomb-daemon.mediatomb.upstart' => 'debian/mediatomb-daemon.mediatomb.upstart.moved'
41=== added file 'debian/patches/libav_0.7_support.patch'
42--- debian/patches/libav_0.7_support.patch 1970-01-01 00:00:00 +0000
43+++ debian/patches/libav_0.7_support.patch 2011-06-03 01:15:53 +0000
44@@ -0,0 +1,64 @@
45+=== modified file 'src/metadata/ffmpeg_handler.cc'
46+--- old/src/metadata/ffmpeg_handler.cc 2010-08-25 17:07:03 +0000
47++++ new/src/metadata/ffmpeg_handler.cc 2011-05-19 04:33:32 +0000
48+@@ -89,6 +89,33 @@
49+
50+ Ref<StringConverter> sc = StringConverter::m2i();
51+
52++ /* Tabs are 4 characters here */
53++ typedef struct {const char *avname; metadata_fields_t field;} mapping_t;
54++ static const mapping_t mapping[] =
55++ {
56++ {"title", M_TITLE},
57++ {"artist", M_ARTIST},
58++ {"album", M_ALBUM},
59++ {"date", M_DATE},
60++ {"genre", M_GENRE},
61++ {"comment", M_DESCRIPTION},
62++ {"track", M_TRACKNUMBER},
63++ {NULL, M_MAX},
64++ };
65++
66++ if (!pFormatCtx->metadata)
67++ return;
68++ for (const mapping_t *m = mapping; m->avname != NULL; m++)
69++ {
70++ AVMetadataTag *tag = NULL;
71++ tag = av_metadata_get(pFormatCtx->metadata, m->avname, NULL, 0);
72++ if (tag && tag->value && tag->value[0])
73++ {
74++ log_debug("Added metadata %s: %s\n", m->avname, tag->value);
75++ item->setMetadata(MT_KEYS[m->field].upnp, sc->convert(tag->value));
76++ }
77++ }
78++ /* Old algorithm (doesn't work with libav >= 0.7)
79+ if (strlen(pFormatCtx->title) > 0)
80+ {
81+ log_debug("Added metadata title: %s\n", pFormatCtx->title);
82+@@ -131,6 +158,7 @@
83+ item->setMetadata(MT_KEYS[M_TRACKNUMBER].upnp,
84+ sc->convert(String::from(pFormatCtx->track)));
85+ }
86++ */
87+ }
88+
89+ // ffmpeg library calls
90+@@ -178,7 +206,7 @@
91+ for(i=0; i<pFormatCtx->nb_streams; i++)
92+ {
93+ AVStream *st = pFormatCtx->streams[i];
94+- if((st != NULL) && (videoset == false) && (st->codec->codec_type == CODEC_TYPE_VIDEO))
95++ if((st != NULL) && (videoset == false) && (st->codec->codec_type == AVMEDIA_TYPE_VIDEO))
96+ {
97+ if (st->codec->codec_tag > 0)
98+ {
99+@@ -209,7 +237,7 @@
100+ *y = st->codec->height;
101+ }
102+ }
103+- if(st->codec->codec_type == CODEC_TYPE_AUDIO)
104++ if(st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
105+ {
106+ // Increase number of audiochannels
107+ audioch++;
108+
109
110=== renamed file 'debian/patches/libav_0.7_support.patch' => 'debian/patches/libav_0.7_support.patch.moved'
111=== added file 'debian/patches/mediatomb-0.12.1-gcc46.patch'
112--- debian/patches/mediatomb-0.12.1-gcc46.patch 1970-01-01 00:00:00 +0000
113+++ debian/patches/mediatomb-0.12.1-gcc46.patch 2011-06-03 01:15:53 +0000
114@@ -0,0 +1,10 @@
115+--- a/src/zmm/object.h
116++++ b/src/zmm/object.h
117+@@ -33,6 +33,7 @@
118+ #define __ZMM_OBJECT_H__
119+
120+ #include <new> // for size_t
121++#include <cstddef>
122+ #include "atomic.h"
123+
124+ namespace zmm
125
126=== renamed file 'debian/patches/mediatomb-0.12.1-gcc46.patch' => 'debian/patches/mediatomb-0.12.1-gcc46.patch.moved'

Subscribers

People subscribed via source and target branches

to all changes: