diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-06-28 12:25:23 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-06-28 12:25:23 +0200 |
commit | 5d58c3fcd74c3ecf4f64f82dd550e38e68177140 (patch) | |
tree | 423e92e389ff4e95713614f3aa6fc2aaf530737b | |
parent | 46ff6c48b7c4b7560da2ad9a1bc17229c26f6166 (diff) |
New upstream release candidate.debian/1.3.90-1
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | debian/control | 4 | ||||
-rw-r--r-- | debian/patches/0001-Revert-avdemux-use-GstFlowCombiner.patch | 165 | ||||
-rw-r--r-- | debian/patches/03_gst-1.2.patch | 28 | ||||
-rw-r--r-- | debian/patches/99_ltmain_as-needed.patch | 32 | ||||
-rw-r--r-- | debian/patches/series | 2 |
6 files changed, 8 insertions, 229 deletions
diff --git a/debian/changelog b/debian/changelog index eed8508..d3b7afc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +gst-libav1.0 (1.3.90-1) experimental; urgency=medium + + * New upstream release candidate. + + -- Sebastian Dröge <slomo@debian.org> Sat, 28 Jun 2014 12:21:23 +0200 + gst-libav1.0 (1.3.3-1) experimental; urgency=medium * New upstream development release. diff --git a/debian/control b/debian/control index c33510f..4aee98a 100644 --- a/debian/control +++ b/debian/control @@ -18,8 +18,8 @@ Build-Depends: debhelper (>= 9), zlib1g-dev, libglib2.0-dev (>= 2.32), pkg-config (>= 0.11.0), - libgstreamer1.0-dev (>= 1.2.4), - libgstreamer-plugins-base1.0-dev (>= 1.2.4), + libgstreamer1.0-dev (>= 1.3.90), + libgstreamer-plugins-base1.0-dev (>= 1.3.90), liborc-0.4-dev (>= 1:0.4.16), libavcodec-dev (>= 6:10), libavformat-dev (>= 6:10), diff --git a/debian/patches/0001-Revert-avdemux-use-GstFlowCombiner.patch b/debian/patches/0001-Revert-avdemux-use-GstFlowCombiner.patch deleted file mode 100644 index 18157a4..0000000 --- a/debian/patches/0001-Revert-avdemux-use-GstFlowCombiner.patch +++ /dev/null @@ -1,165 +0,0 @@ -From a2a6edfd743701806dcb62009880a7d66aa3067f Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com> -Date: Sun, 22 Jun 2014 19:33:22 +0200 -Subject: [PATCH] Revert "avdemux: use GstFlowCombiner" - -This reverts commit 66588ae60df40c60052a9f094444b15b5faf9c07. ---- - ext/libav/gstavdemux.c | 57 ++++++++++++++++++++++++++++++++++++-------------- - 1 file changed, 41 insertions(+), 16 deletions(-) - -diff --git a/ext/libav/gstavdemux.c b/ext/libav/gstavdemux.c -index 917838c..f4e2300 100644 ---- a/ext/libav/gstavdemux.c -+++ b/ext/libav/gstavdemux.c -@@ -28,7 +28,6 @@ - #include <libavformat/avformat.h> - /* #include <ffmpeg/avi.h> */ - #include <gst/gst.h> --#include <gst/base/gstflowcombiner.h> - - #include "gstav.h" - #include "gstavcodecmap.h" -@@ -50,6 +49,7 @@ struct _GstFFStream - GstClockTime last_ts; - gboolean discont; - gboolean eos; -+ GstFlowReturn last_flow; - - GstTagList *tags; /* stream tags */ - }; -@@ -69,8 +69,6 @@ struct _GstFFMpegDemux - - GstFFStream *streams[MAX_STREAMS]; - -- GstFlowCombiner *flowcombiner; -- - gint videopads, audiopads; - - GstClockTime start_time; -@@ -284,8 +282,6 @@ gst_ffmpegdemux_init (GstFFMpegDemux * demux) - demux->seek_event = NULL; - gst_segment_init (&demux->segment, GST_FORMAT_TIME); - -- demux->flowcombiner = gst_flow_combiner_new (); -- - /* push based data */ - g_mutex_init (&demux->ffpipe.tlock); - g_cond_init (&demux->ffpipe.cond); -@@ -305,8 +301,6 @@ gst_ffmpegdemux_finalize (GObject * object) - - demux = (GstFFMpegDemux *) object; - -- gst_flow_combiner_free (demux->flowcombiner); -- - g_mutex_clear (&demux->ffpipe.tlock); - g_cond_clear (&demux->ffpipe.cond); - gst_object_unref (demux->ffpipe.adapter); -@@ -332,10 +326,8 @@ gst_ffmpegdemux_close (GstFFMpegDemux * demux) - - stream = demux->streams[n]; - if (stream) { -- if (stream->pad) { -- gst_flow_combiner_remove_pad (demux->flowcombiner, stream->pad); -+ if (stream->pad) - gst_element_remove_pad (GST_ELEMENT (demux), stream->pad); -- } - if (stream->tags) - gst_tag_list_unref (stream->tags); - g_free (stream); -@@ -610,9 +602,15 @@ gst_ffmpegdemux_perform_seek (GstFFMpegDemux * demux, GstEvent * event) - - /* and prepare to continue streaming */ - if (flush) { -+ gint n; -+ - /* send flush stop, peer will accept data and events again. We - * are not yet providing data as we still have the STREAM_LOCK. */ - gst_ffmpegdemux_push_event (demux, gst_event_new_flush_stop (TRUE)); -+ for (n = 0; n < MAX_STREAMS; ++n) { -+ if (demux->streams[n]) -+ demux->streams[n]->last_flow = GST_FLOW_OK; -+ } - } - /* if successfull seek, we update our real segment and push - * out the new segment. */ -@@ -892,6 +890,34 @@ gst_ffmpegdemux_src_convert (GstPad * pad, - } - #endif - -+static GstFlowReturn -+gst_ffmpegdemux_aggregated_flow (GstFFMpegDemux * demux) -+{ -+ gint n; -+ GstFlowReturn res = GST_FLOW_OK; -+ gboolean have_ok = FALSE; -+ -+ for (n = 0; n < MAX_STREAMS; n++) { -+ GstFFStream *s = demux->streams[n]; -+ -+ if (s) { -+ res = MIN (res, s->last_flow); -+ -+ if (s->last_flow == GST_FLOW_OK) -+ have_ok = TRUE; -+ } -+ } -+ -+ /* NOT_LINKED is OK, if at least one pad is linked */ -+ if (res == GST_FLOW_NOT_LINKED && have_ok) -+ res = GST_FLOW_OK; -+ -+ GST_DEBUG_OBJECT (demux, "Returning aggregated value of %s", -+ gst_flow_get_name (res)); -+ -+ return res; -+} -+ - static gchar * - gst_ffmpegdemux_create_padname (const gchar * templ, gint n) - { -@@ -938,6 +964,7 @@ gst_ffmpegdemux_get_stream (GstFFMpegDemux * demux, AVStream * avstream) - stream->discont = TRUE; - stream->avstream = avstream; - stream->last_ts = GST_CLOCK_TIME_NONE; -+ stream->last_flow = GST_FLOW_OK; - stream->tags = NULL; - - switch (ctx->codec_type) { -@@ -1023,7 +1050,6 @@ gst_ffmpegdemux_get_stream (GstFFMpegDemux * demux, AVStream * avstream) - - /* activate and add */ - gst_element_add_pad (GST_ELEMENT (demux), pad); -- gst_flow_combiner_add_pad (demux->flowcombiner, pad); - - /* metadata */ - if ((codec = gst_ffmpeg_get_codecid_longname (ctx->codec_id))) { -@@ -1333,7 +1359,6 @@ gst_ffmpegdemux_loop (GstFFMpegDemux * demux) - GstClockTime timestamp, duration; - gint outsize; - gboolean rawvideo; -- GstFlowReturn stream_last_flow; - - /* open file if we didn't so already */ - if (!demux->opened) -@@ -1456,13 +1481,13 @@ gst_ffmpegdemux_loop (GstFFMpegDemux * demux) - "Sending out buffer time:%" GST_TIME_FORMAT " size:%" G_GSIZE_FORMAT, - GST_TIME_ARGS (timestamp), gst_buffer_get_size (outbuf)); - -- ret = stream_last_flow = gst_pad_push (srcpad, outbuf); -+ ret = stream->last_flow = gst_pad_push (srcpad, outbuf); - - /* if a pad is in e.g. WRONG_STATE, we want to pause to unlock the STREAM_LOCK */ -- if (((ret = gst_flow_combiner_update_flow (demux->flowcombiner, -- ret)) != GST_FLOW_OK)) { -+ if ((ret != GST_FLOW_OK) -+ && ((ret = gst_ffmpegdemux_aggregated_flow (demux)) != GST_FLOW_OK)) { - GST_WARNING_OBJECT (demux, "stream_movi flow: %s / %s", -- gst_flow_get_name (stream_last_flow), gst_flow_get_name (ret)); -+ gst_flow_get_name (stream->last_flow), gst_flow_get_name (ret)); - goto pause; - } - --- -2.0.0 - diff --git a/debian/patches/03_gst-1.2.patch b/debian/patches/03_gst-1.2.patch deleted file mode 100644 index 5bc9dcf..0000000 --- a/debian/patches/03_gst-1.2.patch +++ /dev/null @@ -1,28 +0,0 @@ -Index: gst-libav1.0/configure.ac -=================================================================== ---- gst-libav1.0.orig/configure.ac -+++ gst-libav1.0/configure.ac -@@ -45,8 +45,8 @@ AG_GST_LIBTOOL_PREPARE - AS_LIBTOOL(GST, 303, 0, 303) - - dnl *** required versions of GStreamer stuff *** --GST_REQ=1.3.3 --GST_PBREQ=1.3.3 -+GST_REQ=1.2.4 -+GST_PBREQ=1.2.4 - - ORC_REQ=0.4.16 - ORC_CHECK([$ORC_REQ]) -Index: gst-libav1.0/ext/libav/gstavviddec.c -=================================================================== ---- gst-libav1.0.orig/ext/libav/gstavviddec.c -+++ gst-libav1.0/ext/libav/gstavviddec.c -@@ -265,8 +265,6 @@ gst_ffmpegviddec_init (GstFFMpegVidDec * - ffmpegdec->debug_mv = DEFAULT_DEBUG_MV; - ffmpegdec->max_threads = DEFAULT_MAX_THREADS; - ffmpegdec->output_corrupt = DEFAULT_OUTPUT_CORRUPT; -- -- gst_video_decoder_set_needs_format (GST_VIDEO_DECODER (ffmpegdec), TRUE); - } - - static void diff --git a/debian/patches/99_ltmain_as-needed.patch b/debian/patches/99_ltmain_as-needed.patch deleted file mode 100644 index 7f32823..0000000 --- a/debian/patches/99_ltmain_as-needed.patch +++ /dev/null @@ -1,32 +0,0 @@ -Index: gst-libav1.0/ltmain.sh -=================================================================== ---- gst-libav1.0.orig/ltmain.sh 2012-08-09 11:59:48.322044780 +0200 -+++ gst-libav1.0/ltmain.sh 2012-12-18 11:40:28.530169305 +0100 -@@ -5800,6 +5800,11 @@ - arg=$func_stripname_result - ;; - -+ -Wl,--as-needed) -+ deplibs="$deplibs $arg" -+ continue -+ ;; -+ - -Wl,*) - func_stripname '-Wl,' '' "$arg" - args=$func_stripname_result -@@ -6163,6 +6168,15 @@ - lib= - found=no - case $deplib in -+ -Wl,--as-needed) -+ if test "$linkmode,$pass" = "prog,link"; then -+ compile_deplibs="$deplib $compile_deplibs" -+ finalize_deplibs="$deplib $finalize_deplibs" -+ else -+ deplibs="$deplib $deplibs" -+ fi -+ continue -+ ;; - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ - |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) - if test "$linkmode,$pass" = "prog,link"; then diff --git a/debian/patches/series b/debian/patches/series index 4d4309d..08f1029 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1 @@ 02_plugin-dependencies.patch -03_gst-1.2.patch -0001-Revert-avdemux-use-GstFlowCombiner.patch |