Update to debian 1.14.4

* Update to debian 1.14.4-1
* For Day release

Bug: 148502049
Change-Id: Idd3a5fec15f24c29dcb4f02a8072a48add28e8de
diff --git a/debian/changelog b/debian/changelog
index 1fce05d..879d0da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+gstreamer1.0 (1.14.4-1+mtk) mendel-day; urgency=medium
+
+  * Update to debian 1.14.4-1
+  * Update for Day release
+
+ -- Coral Team <coral-support@google.com>  Thu, 30 Jan 2020 12:23:03 -0800
+
 gstreamer1.0 (1.10.4-1+mtk) mendel-chef; urgency=medium
 
   * Add MTK patches
diff --git a/debian/control b/debian/control
index b62db90..c2e1ede 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
 Source: gstreamer1.0
 Section: libs
 Priority: optional
-Maintainer: Maintainers of GStreamer packages <pkg-gstreamer-maintainers@lists.alioth.debian.org>
+Maintainer: Maintainers of GStreamer packages <gstreamer1.0@packages.debian.org>
 Uploaders: Loïc Minier <lool@debian.org>,
            Sebastien Bacher <seb128@debian.org>,
            Sebastian Dröge <slomo@debian.org>,
@@ -17,7 +17,7 @@
                autopoint (>= 0.17),
                zlib1g-dev (>= 1:1.1.4),
                libglib2.0-dev (>= 2.40),
-               libgmp3-dev,
+               libgmp-dev | libgmp3-dev,
                libgsl-dev | libgsl0-dev,
                pkg-config (>= 0.11.0),
                bison (>= 1:2.4),
@@ -26,7 +26,9 @@
                perl-doc:all,
                libcap-dev [linux-any]
 Standards-Version: 3.9.8
-Homepage: http://gstreamer.freedesktop.org
+Vcs-Git: https://salsa.debian.org/gstreamer-team/gstreamer1.0.git
+Vcs-Browser: https://salsa.debian.org/gstreamer-team/gstreamer1.0/
+Homepage: https://gstreamer.freedesktop.org
 
 Package: libgstreamer1.0-0
 Architecture: any
@@ -37,7 +39,9 @@
          ${misc:Depends},
          libcap2-bin [linux-any]
 Suggests: gstreamer1.0-tools,
-Breaks: gstreamer1.0-plugins-base (<< 1.8.0)
+Breaks: gstreamer1.0-plugins-base (<< 1.8.0),
+        gstreamer1.0-plugins-bad (<< 1.11.1),
+        libgstreamer-plugins-bad1.0-0 (<< 1.13.1)
 Description: Core GStreamer libraries and elements
  GStreamer is a streaming media framework, based on graphs of filters
  which operate on media data.  Applications using this library can do
@@ -52,7 +56,7 @@
 Architecture: any
 Multi-Arch: same
 Section: debug
-Priority: extra
+Priority: optional
 Depends: libgstreamer1.0-0 (= ${binary:Version}),
          ${misc:Depends}
 Description: Core GStreamer libraries and elements
@@ -70,6 +74,7 @@
 
 Package: libgstreamer1.0-dev
 Architecture: any
+Multi-Arch: same
 Section: libdevel
 Depends: libgstreamer1.0-0 (= ${binary:Version}),
          libc6-dev | libc-dev,
@@ -77,6 +82,8 @@
          libglib2.0-dev,
          ${shlibs:Depends},
          ${misc:Depends}
+Conflicts: libgstreamer-plugins-bad1.0-dev (<< 1.13.1)
+Replaces: libgstreamer-plugins-bad1.0-dev (<< 1.13.1)
 Recommends: debhelper
 Suggests: gstreamer1.0-doc
 Description: GStreamer core development files
@@ -116,8 +123,7 @@
 Section: utils
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         pkg-config,
-         libgstreamer1.0-0 (>= 1.10.3)
+         libgstreamer1.0-0 (>= 1.14.3)
 Suggests: gstreamer1.0-plugins-base
 Description: Tools for use with GStreamer
  GStreamer is a streaming media framework, based on graphs of filters
@@ -128,4 +134,3 @@
  installing new plug-ins.
  .
  This package contains versioned command-line tools for GStreamer.
-
diff --git a/debian/control.in b/debian/control.in
index 033728b..51f7257 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -1,7 +1,7 @@
 Source: @GST_PKGNAME@
 Section: libs
 Priority: optional
-Maintainer: Maintainers of GStreamer packages <pkg-gstreamer-maintainers@lists.alioth.debian.org>
+Maintainer: Maintainers of GStreamer packages <gstreamer1.0@packages.debian.org>
 Uploaders: Loïc Minier <lool@debian.org>,
            Sebastien Bacher <seb128@debian.org>,
            Sebastian Dröge <slomo@debian.org>,
@@ -17,7 +17,7 @@
                autopoint (>= 0.17),
                zlib1g-dev (>= 1:1.1.4),
                libglib2.0-dev (>= 2.40),
-               libgmp3-dev,
+               libgmp-dev | libgmp3-dev,
                libgsl-dev | libgsl0-dev,
                pkg-config (>= 0.11.0),
                bison (>= 1:2.4),
@@ -29,20 +29,12 @@
                gir1.2-glib-2.0,
                gir1.2-freedesktop,
                libcap-dev [linux-any]
-Build-Depends-Indep: python (>= 2.2),
-                     gtk-doc-tools (>= 1.12),
-                     texlive-generic-recommended,
-                     transfig (>= 3.2.3.c),
-                     docbook-utils (>= 0.6.9),
-                     docbook-xml,
-                     docbook-xsl,
-                     xsltproc (>= 1.0.21),
-                     ghostscript,
-                     xmlto,
-                     netpbm,
+Build-Depends-Indep: gtk-doc-tools (>= 1.12),
                      libglib2.0-doc
 Standards-Version: 3.9.3
-Homepage: http://gstreamer.freedesktop.org
+Vcs-Git: https://salsa.debian.org/gstreamer-team/gstreamer1.0.git
+Vcs-Browser: https://salsa.debian.org/gstreamer-team/gstreamer1.0/
+Homepage: https://gstreamer.freedesktop.org
 
 Package: @GST_LIB@
 Architecture: any
@@ -53,7 +45,9 @@
          ${misc:Depends},
          libcap2-bin [linux-any]
 Suggests: @GST_PKGNAME@-tools,
-Breaks: @GST_PKGNAME@-plugins-base (<< 1.8.0)
+Breaks: @GST_PKGNAME@-plugins-base (<< 1.8.0),
+        @GST_PKGNAME@-plugins-bad (<< 1.11.1),
+        libgstreamer-plugins-bad1.0-0 (<< 1.13.1)
 Description: Core GStreamer libraries and elements
  GStreamer is a streaming media framework, based on graphs of filters
  which operate on media data.  Applications using this library can do
@@ -86,6 +80,7 @@
 
 Package: @GST_LIB_DEV@
 Architecture: any
+Multi-Arch: same
 Section: libdevel
 Depends: @GST_LIB@ (= ${binary:Version}),
          libc6-dev | libc-dev,
@@ -94,6 +89,8 @@
          ${shlibs:Depends},
          ${misc:Depends},
          gir1.2-gstreamer-@GST_ABI@ (= ${binary:Version})
+Conflicts: libgstreamer-plugins-bad1.0-dev (<< 1.13.1)
+Replaces: libgstreamer-plugins-bad1.0-dev (<< 1.13.1)
 Recommends: debhelper
 Suggests: @GST_PKGNAME@-doc
 Description: GStreamer core development files
@@ -133,7 +130,6 @@
 Section: utils
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         pkg-config,
          @GST_LIB@ (>= @GST_VERSION@)
 Suggests: @GST_PKGNAME@-plugins-base
 Description: Tools for use with GStreamer
@@ -149,10 +145,10 @@
 Package: gir1.2-gstreamer-@GST_ABI@
 Section: introspection
 Architecture: any
+Multi-Arch: same
 Depends: ${gir:Depends},
          ${shlibs:Depends},
-         ${misc:Depends},
-         ${gir:Depends}
+         ${misc:Depends}
 Description: GObject introspection data for the GStreamer library
  This package contains introspection data for the GStreamer streaming media
  framework.
diff --git a/debian/dh_gstscancodecs b/debian/dh_gstscancodecs
index b25a6e6..4fd96e4 100644
--- a/debian/dh_gstscancodecs
+++ b/debian/dh_gstscancodecs
@@ -71,7 +71,8 @@
 
 my $deb_host_multiarch = `dpkg-architecture -qDEB_HOST_MULTIARCH`;
 chop $deb_host_multiarch;
-$::pluginlibdirprefix = '/usr/lib/'.$deb_host_multiarch.'/gstreamer-';
+my $libdir = '/usr/lib/'.$deb_host_multiarch;
+$::pluginlibdirprefix = $libdir.'/gstreamer-';
 $::pluginlibdirlegacy = '/usr/lib/gstreamer-';
 
 foreach my $package (@{$dh{DOPACKAGES}}) {
@@ -92,7 +93,7 @@
     my (undef, $tmpfile) = File::Temp::tempfile("/tmp/".basename($0).".XXXX", UNLINK => 1);
     my (undef, $registryfile) = File::Temp::tempfile("/tmp/".basename($0).".XXXX", UNLINK => 1);
 
-    my $command="GST_REGISTRY=$registryfile GST_PLUGIN_SYSTEM_PATH= GST_PLUGIN_PATH=$sodir gst-codec-info-$gstversion " . join(' ', (glob "$sodir/*.so")) . " > $tmpfile";
+    my $command="GST_REGISTRY=$registryfile GST_PLUGIN_SYSTEM_PATH= GST_PLUGIN_PATH=$sodir $libdir/gstreamer$gstversion/gstreamer-$gstversion/gst-codec-info-$gstversion " . join(' ', (glob "$sodir/*.so")) . " > $tmpfile";
 
     system($command);
     if ($?) {
diff --git a/debian/gstreamer1.0-doc.doc-base.faq b/debian/gstreamer1.0-doc.doc-base.faq
deleted file mode 100644
index ab0fe7e..0000000
--- a/debian/gstreamer1.0-doc.doc-base.faq
+++ /dev/null
@@ -1,9 +0,0 @@
-Document: gstreamer-1.0-faq
-Title: GStreamer 1.0 FAQ
-Abstract: FAQ for GStreamer, a multimedia framework. Questions and answers
- range from general information to deep-down-and-dirty compilation issues.
-Section: Help/FAQ
-
-Format: HTML
-Files: /usr/share/doc/gstreamer1.0-doc/faq/html/*.html
-Index: /usr/share/doc/gstreamer1.0-doc/faq/html/index.html
diff --git a/debian/gstreamer1.0-doc.doc-base.manual b/debian/gstreamer1.0-doc.doc-base.manual
deleted file mode 100644
index 20f99a3..0000000
--- a/debian/gstreamer1.0-doc.doc-base.manual
+++ /dev/null
@@ -1,11 +0,0 @@
-Document: gstreamer-1.0-manual
-Title: GStreamer 1.0 Application Development Manual
-Author: Wim Taymans, Steve Baker, Andy Wingo, Ronald S. Bultje
-Abstract: GStreamer is an extremely powerful and versatile framework for
- creating streaming media applications. This guide is intended to help you
- understand the GStreamer framework so you can develop applications based on it.
-Section: Programming
-
-Format: HTML
-Files: /usr/share/doc/gstreamer1.0-doc/manual/html/*.html
-Index: /usr/share/doc/gstreamer1.0-doc/manual/html/index.html
diff --git a/debian/gstreamer1.0-doc.doc-base.pwg b/debian/gstreamer1.0-doc.doc-base.pwg
deleted file mode 100644
index 2c2789e..0000000
--- a/debian/gstreamer1.0-doc.doc-base.pwg
+++ /dev/null
@@ -1,14 +0,0 @@
-Document: gstreamer-1.0-pwg
-Title: GStreamer Plugin Writer's Guide
-Author: Richard John Boulton, Erik Walthinsen, Steve Baker, Leif Johnson, Ronald S. Bultje
-Abstract:  This guide is intended to help you understand the GStreamer
- framework so you can develop new plugins to extend the existing functionality.
- The guide addresses most issues by following the development of an example
- audio filter plugin, written in C. The later parts of the guide also present
- some issues involved in writing other types of plugins, and the end of the
- guide describes some of the Python bindings for GStreamer.
-Section: Programming
-
-Format: HTML
-Files: /usr/share/doc/gstreamer1.0-doc/pwg/html/*.html
-Index: /usr/share/doc/gstreamer1.0-doc/pwg/html/index.html
diff --git a/debian/libgstreamer-dev.install b/debian/libgstreamer-dev.install
index d6d0b15..c2cad97 100644
--- a/debian/libgstreamer-dev.install
+++ b/debian/libgstreamer-dev.install
@@ -1,7 +1,7 @@
 debian/tmp/usr/include
 debian/tmp/usr/lib/*/*.so
+debian/tmp/usr/lib/*/gstreamer@GST_ABI@/gstreamer-@GST_ABI@/gst-codec-info-@GST_ABI@
 debian/tmp/usr/lib/*/pkgconfig
 debian/tmp/usr/share/aclocal
-debian/tmp/usr/bin/gst-codec-info-@GST_ABI@
 debian/dh_gstscancodecs usr/bin
 debian/tmp/usr/share/man/man1/dh_gstscancodecs.1
diff --git a/debian/libgstreamer.symbols b/debian/libgstreamer.symbols
index 2f5f83f..ba0916e 100644
--- a/debian/libgstreamer.symbols
+++ b/debian/libgstreamer.symbols
@@ -1,4 +1,5 @@
 libgstbase-1.0.so.0 libgstreamer1.0-0 #MINVER#
+* Build-Depends-Package: libgstreamer1.0-dev
  gst_adapter_available@Base 1.0.0
  gst_adapter_available_fast@Base 1.0.0
  gst_adapter_clear@Base 1.0.0
@@ -30,9 +31,24 @@
  gst_adapter_take_buffer_list@Base 1.6.0
  gst_adapter_take_list@Base 1.0.0
  gst_adapter_unmap@Base 1.0.0
+ gst_aggregator_finish_buffer@Base 1.14.0
+ gst_aggregator_get_allocator@Base 1.14.0
+ gst_aggregator_get_buffer_pool@Base 1.14.0
+ gst_aggregator_get_latency@Base 1.14.0
+ gst_aggregator_get_type@Base 1.14.0
+ gst_aggregator_pad_drop_buffer@Base 1.14.0
+ gst_aggregator_pad_get_type@Base 1.14.0
+ gst_aggregator_pad_has_buffer@Base 1.14.1
+ gst_aggregator_pad_is_eos@Base 1.14.0
+ gst_aggregator_pad_peek_buffer@Base 1.14.0
+ gst_aggregator_pad_pop_buffer@Base 1.14.0
+ gst_aggregator_set_latency@Base 1.14.0
+ gst_aggregator_set_src_caps@Base 1.14.0
  gst_base_parse_add_index_entry@Base 1.0.0
  gst_base_parse_convert_default@Base 1.0.0
+ gst_base_parse_drain@Base 1.12.0
  gst_base_parse_finish_frame@Base 1.0.0
+ gst_base_parse_frame_copy@Base 1.12.1
  gst_base_parse_frame_free@Base 1.0.0
  gst_base_parse_frame_get_type@Base 1.0.0
  gst_base_parse_frame_init@Base 1.0.0
@@ -53,6 +69,7 @@
  gst_base_parse_set_ts_at_offset@Base 1.2.0
  gst_base_sink_do_preroll@Base 1.0.0
  gst_base_sink_get_blocksize@Base 1.0.0
+ gst_base_sink_get_drop_out_of_segment@Base 1.12.0
  gst_base_sink_get_last_sample@Base 1.0.0
  gst_base_sink_get_latency@Base 1.0.0
  gst_base_sink_get_max_bitrate@Base 1.2.0
@@ -68,6 +85,7 @@
  gst_base_sink_query_latency@Base 1.0.0
  gst_base_sink_set_async_enabled@Base 1.0.0
  gst_base_sink_set_blocksize@Base 1.0.0
+ gst_base_sink_set_drop_out_of_segment@Base 1.12.0
  gst_base_sink_set_last_sample_enabled@Base 1.0.0
  gst_base_sink_set_max_bitrate@Base 1.2.0
  gst_base_sink_set_max_lateness@Base 1.0.0
@@ -98,6 +116,7 @@
  gst_base_src_set_live@Base 1.0.0
  gst_base_src_start_complete@Base 1.0.0
  gst_base_src_start_wait@Base 1.0.0
+ gst_base_src_submit_buffer_list@Base 1.14.0
  gst_base_src_wait_playing@Base 1.0.0
  gst_base_transform_get_allocator@Base 1.0.0
  gst_base_transform_get_buffer_pool@Base 1.0.0
@@ -282,8 +301,10 @@
  gst_flow_combiner_free@Base 1.4.0
  gst_flow_combiner_get_type@Base 1.4.0
  gst_flow_combiner_new@Base 1.4.0
+ gst_flow_combiner_ref@Base 1.12.1
  gst_flow_combiner_remove_pad@Base 1.4.0
  gst_flow_combiner_reset@Base 1.6.0
+ gst_flow_combiner_unref@Base 1.12.1
  gst_flow_combiner_update_flow@Base 1.4.0
  gst_flow_combiner_update_pad_flow@Base 1.6.0
  gst_push_src_get_type@Base 1.0.0
@@ -297,8 +318,12 @@
  gst_queue_array_new_for_struct@Base 1.6.0
  gst_queue_array_peek_head@Base 1.2.0
  gst_queue_array_peek_head_struct@Base 1.6.0
+ gst_queue_array_peek_tail@Base 1.14.0
+ gst_queue_array_peek_tail_struct@Base 1.14.0
  gst_queue_array_pop_head@Base 1.2.0
  gst_queue_array_pop_head_struct@Base 1.6.0
+ gst_queue_array_pop_tail@Base 1.14.0
+ gst_queue_array_pop_tail_struct@Base 1.14.0
  gst_queue_array_push_tail@Base 1.2.0
  gst_queue_array_push_tail_struct@Base 1.6.0
  gst_type_find_helper@Base 1.0.0
@@ -306,10 +331,13 @@
  gst_type_find_helper_for_data@Base 1.0.0
  gst_type_find_helper_for_extension@Base 1.0.0
  gst_type_find_helper_get_range@Base 1.0.0
+ gst_type_find_helper_get_range_full@Base 1.14.3
 libgstcheck-1.0.so.0 libgstreamer1.0-0 #MINVER#
+* Build-Depends-Package: libgstreamer1.0-dev
  _ck_assert_failed@Base 1.6.0
  _fail_unless@Base 1.0.0
  _gst_check_expecting_log@Base 1.0.0
+ _gst_check_list_tests@Base 1.12.0
  _gst_check_raised_critical@Base 1.0.0
  _gst_check_raised_warning@Base 1.0.0
  _gst_check_run_test_func@Base 1.0.0
@@ -328,9 +356,11 @@
  gst_buffer_straw_start_pipeline@Base 1.0.0
  gst_buffer_straw_stop_pipeline@Base 1.0.0
  gst_check_abi_list@Base 1.0.0
+ gst_check_add_log_filter@Base 1.12.0
  gst_check_buffer_data@Base 1.0.0
  gst_check_caps_equal@Base 1.0.0
  gst_check_chain_func@Base 1.0.0
+ gst_check_clear_log_filter@Base 1.12.0
  gst_check_drop_buffers@Base 1.0.0
  gst_check_element_push_buffer@Base 1.0.0
  gst_check_element_push_buffer_list@Base 1.0.0
@@ -338,6 +368,7 @@
  gst_check_message_error@Base 1.0.0
  gst_check_object_destroyed_on_unref@Base 1.6.0
  gst_check_objects_destroyed_on_unref@Base 1.6.0
+ gst_check_remove_log_filter@Base 1.12.0
  gst_check_run_suite@Base 1.0.0
  gst_check_setup_element@Base 1.0.0
  gst_check_setup_events@Base 1.2.0
@@ -359,6 +390,7 @@
  gst_consistency_checker_new@Base 1.0.0
  gst_consistency_checker_reset@Base 1.0.0
  gst_harness_add_element_full@Base 1.8.0
+ gst_harness_add_element_sink_pad@Base 1.14.0
  gst_harness_add_element_src_pad@Base 1.6.0
  gst_harness_add_parse@Base 1.8.0
  gst_harness_add_probe@Base 1.6.0
@@ -426,6 +458,9 @@
  gst_harness_stress_requestpad_start_full@Base 1.6.0
  gst_harness_stress_statechange_start_full@Base 1.6.0
  gst_harness_stress_thread_stop@Base 1.6.0
+ gst_harness_take_all_data@Base 1.14.0
+ gst_harness_take_all_data_as_buffer@Base 1.14.0
+ gst_harness_take_all_data_as_bytes@Base 1.14.0
  gst_harness_teardown@Base 1.6.0
  gst_harness_try_pull@Base 1.6.0
  gst_harness_try_pull_event@Base 1.6.0
@@ -467,6 +502,7 @@
  srunner_results@Base 1.0.0
  srunner_run@Base 1.6.0
  srunner_run_all@Base 1.0.0
+ srunner_run_tagged@Base 1.12.0
  srunner_set_fork_status@Base 1.0.0
  srunner_set_log@Base 1.0.0
  srunner_set_tap@Base 1.6.0
@@ -482,6 +518,7 @@
  tcase_add_unchecked_fixture@Base 1.0.0
  tcase_create@Base 1.0.0
  tcase_fn_start@Base 1.0.0
+ tcase_set_tags@Base 1.12.0
  tcase_set_timeout@Base 1.0.0
  thread_list@Base 1.0.0
  tr_ctx@Base 1.0.0
@@ -491,8 +528,11 @@
  tr_rtype@Base 1.0.0
  tr_tcname@Base 1.0.0
 libgstcontroller-1.0.so.0 libgstreamer1.0-0 #MINVER#
+* Build-Depends-Package: libgstreamer1.0-dev
  gst_argb_control_binding_get_type@Base 1.0.0
  gst_argb_control_binding_new@Base 1.0.0
+ gst_control_point_copy@Base 1.12.1
+ gst_control_point_free@Base 1.12.1
  gst_control_point_get_type@Base 1.6.0
  gst_direct_control_binding_get_type@Base 1.0.0
  gst_direct_control_binding_new@Base 1.0.0
@@ -503,6 +543,8 @@
  gst_lfo_control_source_get_type@Base 1.0.0
  gst_lfo_control_source_new@Base 1.0.0
  gst_lfo_waveform_get_type@Base 1.0.0
+ gst_proxy_control_binding_get_type@Base 1.12.0
+ gst_proxy_control_binding_new@Base 1.12.0
  gst_timed_value_control_invalidate_cache@Base 1.0.0
  gst_timed_value_control_source_find_control_point_iter@Base 1.0.0
  gst_timed_value_control_source_get_all@Base 1.0.0
@@ -515,6 +557,7 @@
  gst_trigger_control_source_get_type@Base 1.0.0
  gst_trigger_control_source_new@Base 1.0.0
 libgstnet-1.0.so.0 libgstreamer1.0-0 #MINVER#
+* Build-Depends-Package: libgstreamer1.0-dev
  gst_buffer_add_net_address_meta@Base 1.0.0
  gst_buffer_add_net_control_message_meta@Base 1.6.0
  gst_buffer_get_net_address_meta@Base 1.8.0
@@ -544,6 +587,7 @@
  gst_ptp_statistics_callback_add@Base 1.6.0
  gst_ptp_statistics_callback_remove@Base 1.6.0
 libgstreamer-1.0.so.0 libgstreamer1.0-0 #MINVER#
+* Build-Depends-Package: libgstreamer1.0-dev
  GST_CAT_BUFFER@Base 1.0.0
  GST_CAT_BUFFER_LIST@Base 1.0.0
  GST_CAT_BUS@Base 1.0.0
@@ -598,6 +642,7 @@
  _gst_double_range_type@Base 1.4.0
  _gst_element_error_printf@Base 1.0.0
  _gst_event_type@Base 1.0.0
+ _gst_executable_path@Base 1.14.0
  _gst_flagset_type@Base 1.6.0
  _gst_fraction_range_type@Base 1.4.0
  _gst_fraction_type@Base 1.4.0
@@ -627,7 +672,6 @@
  gst_allocator_get_type@Base 1.0.0
  gst_allocator_register@Base 1.0.0
  gst_allocator_set_default@Base 1.0.0
- gst_allocator_sysmem_get_type@Base 1.2.0
  gst_atomic_queue_get_type@Base 1.0.0
  gst_atomic_queue_length@Base 1.0.0
  gst_atomic_queue_new@Base 1.0.0
@@ -661,6 +705,7 @@
  gst_buffer_add_meta@Base 1.0.0
  gst_buffer_add_parent_buffer_meta@Base 1.6.0
  gst_buffer_add_protection_meta@Base 1.6.0
+ gst_buffer_add_reference_timestamp_meta@Base 1.14.0
  gst_buffer_append@Base 1.0.0
  gst_buffer_append_memory@Base 1.0.0
  gst_buffer_append_region@Base 1.0.0
@@ -680,6 +725,8 @@
  gst_buffer_get_memory@Base 1.0.0
  gst_buffer_get_memory_range@Base 1.0.0
  gst_buffer_get_meta@Base 1.0.0
+ gst_buffer_get_n_meta@Base 1.14.0
+ gst_buffer_get_reference_timestamp_meta@Base 1.14.0
  gst_buffer_get_size@Base 1.0.0
  gst_buffer_get_sizes@Base 1.0.0
  gst_buffer_get_sizes_range@Base 1.0.0
@@ -689,10 +736,13 @@
  gst_buffer_is_all_memory_writable@Base 1.4.0
  gst_buffer_is_memory_range_writable@Base 1.4.0
  gst_buffer_iterate_meta@Base 1.0.0
+ gst_buffer_iterate_meta_filtered@Base 1.12.0
+ gst_buffer_list_calculate_size@Base 1.14.0
  gst_buffer_list_copy_deep@Base 1.6.0
  gst_buffer_list_foreach@Base 1.0.0
  gst_buffer_list_get@Base 1.0.0
  gst_buffer_list_get_type@Base 1.0.0
+ gst_buffer_list_get_writable@Base 1.14.0
  gst_buffer_list_insert@Base 1.0.0
  gst_buffer_list_length@Base 1.0.0
  gst_buffer_list_new@Base 1.0.0
@@ -753,6 +803,7 @@
  gst_bus_disable_sync_message_emission@Base 1.0.0
  gst_bus_enable_sync_message_emission@Base 1.0.0
  gst_bus_flags_get_type@Base 1.0.0
+ gst_bus_get_pollfd@Base 1.14.0
  gst_bus_get_type@Base 1.0.0
  gst_bus_have_pending@Base 1.0.0
  gst_bus_new@Base 1.0.0
@@ -769,6 +820,7 @@
  gst_bus_sync_signal_handler@Base 1.0.0
  gst_bus_timed_pop@Base 1.0.0
  gst_bus_timed_pop_filtered@Base 1.0.0
+ gst_calculate_linear_regression@Base 1.12.0
  gst_caps_append@Base 1.0.0
  gst_caps_append_structure@Base 1.0.0
  gst_caps_append_structure_full@Base 1.2.0
@@ -937,6 +989,7 @@
  gst_date_time_to_iso8601_string@Base 1.0.0
  gst_date_time_unref@Base 1.0.0
  gst_debug_add_log_function@Base 1.0.0
+ gst_debug_add_ring_buffer_logger@Base 1.14.0
  gst_debug_bin_to_dot_data@Base 1.6.0
  gst_debug_bin_to_dot_file@Base 1.0.0
  gst_debug_bin_to_dot_file_with_ts@Base 1.0.0
@@ -954,6 +1007,7 @@
  gst_debug_get_all_categories@Base 1.0.0
  gst_debug_get_color_mode@Base 1.2.0
  gst_debug_get_default_threshold@Base 1.0.0
+ gst_debug_get_stack_trace@Base 1.12.0
  gst_debug_graph_details_get_type@Base 1.0.0
  gst_debug_is_active@Base 1.0.0
  gst_debug_is_colored@Base 1.0.0
@@ -966,6 +1020,8 @@
  gst_debug_print_stack_trace@Base 1.0.0
  gst_debug_remove_log_function@Base 1.0.0
  gst_debug_remove_log_function_by_data@Base 1.0.0
+ gst_debug_remove_ring_buffer_logger@Base 1.14.0
+ gst_debug_ring_buffer_logger_get_logs@Base 1.14.0
  gst_debug_set_active@Base 1.0.0
  gst_debug_set_color_mode@Base 1.2.0
  gst_debug_set_color_mode_from_string@Base 1.2.0
@@ -1016,6 +1072,7 @@
  gst_device_provider_get_devices@Base 1.4.0
  gst_device_provider_get_factory@Base 1.4.0
  gst_device_provider_get_hidden_providers@Base 1.6.0
+ gst_device_provider_get_metadata@Base 1.14.0
  gst_device_provider_get_type@Base 1.4.0
  gst_device_provider_hide_provider@Base 1.6.0
  gst_device_provider_register@Base 1.4.0
@@ -1024,6 +1081,9 @@
  gst_device_provider_unhide_provider@Base 1.6.0
  gst_device_reconfigure_element@Base 1.4.0
  gst_double_range_get_type@Base 1.0.0
+ gst_dynamic_type_factory_get_type@Base 1.12.0
+ gst_dynamic_type_factory_load@Base 1.12.0
+ gst_dynamic_type_register@Base 1.12.0
  gst_element_abort_state@Base 1.0.0
  gst_element_add_pad@Base 1.0.0
  gst_element_add_property_deep_notify_watch@Base 1.10.0
@@ -1034,6 +1094,7 @@
  gst_element_class_add_pad_template@Base 1.0.0
  gst_element_class_add_static_metadata@Base 1.0.0
  gst_element_class_add_static_pad_template@Base 1.8.0
+ gst_element_class_add_static_pad_template_with_gtype@Base 1.14.0
  gst_element_class_get_metadata@Base 1.0.0
  gst_element_class_get_pad_template@Base 1.0.0
  gst_element_class_get_pad_template_list@Base 1.0.0
@@ -1061,6 +1122,9 @@
  gst_element_factory_list_is_type@Base 1.0.0
  gst_element_factory_make@Base 1.0.0
  gst_element_flags_get_type@Base 1.0.0
+ gst_element_foreach_pad@Base 1.14.0
+ gst_element_foreach_sink_pad@Base 1.14.0
+ gst_element_foreach_src_pad@Base 1.14.0
  gst_element_get_base_time@Base 1.0.0
  gst_element_get_bus@Base 1.0.0
  gst_element_get_clock@Base 1.0.0
@@ -1070,6 +1134,9 @@
  gst_element_get_context_unlocked@Base 1.8.0
  gst_element_get_contexts@Base 1.8.0
  gst_element_get_factory@Base 1.0.0
+ gst_element_get_metadata@Base 1.14.0
+ gst_element_get_pad_template@Base 1.14.0
+ gst_element_get_pad_template_list@Base 1.14.0
  gst_element_get_request_pad@Base 1.0.0
  gst_element_get_start_time@Base 1.0.0
  gst_element_get_state@Base 1.0.0
@@ -1198,6 +1265,7 @@
  gst_fraction_get_type@Base 1.0.0
  gst_fraction_range_get_type@Base 1.0.0
  gst_g_thread_get_type@Base 1.2.0
+ gst_get_main_executable_path@Base 1.14.0
  gst_ghost_pad_activate_mode_default@Base 1.0.0
  gst_ghost_pad_construct@Base 1.0.0
  gst_ghost_pad_get_target@Base 1.0.0
@@ -1348,6 +1416,7 @@
  gst_message_type_get_name@Base 1.0.0
  gst_message_type_get_type@Base 1.0.0
  gst_message_type_to_quark@Base 1.0.0
+ gst_message_writable_structure@Base 1.14.0
  gst_meta_api_type_get_tags@Base 1.2.0
  gst_meta_api_type_has_tag@Base 1.0.0
  gst_meta_api_type_register@Base 1.0.0
@@ -1429,6 +1498,7 @@
  gst_pad_get_sticky_event@Base 1.0.0
  gst_pad_get_stream@Base 1.10.0
  gst_pad_get_stream_id@Base 1.2.0
+ gst_pad_get_task_state@Base 1.12.0
  gst_pad_get_type@Base 1.0.0
  gst_pad_has_current_caps@Base 1.0.0
  gst_pad_is_active@Base 1.0.0
@@ -1502,15 +1572,20 @@
  gst_pad_template_get_caps@Base 1.0.0
  gst_pad_template_get_type@Base 1.0.0
  gst_pad_template_new@Base 1.0.0
+ gst_pad_template_new_from_static_pad_template_with_gtype@Base 1.14.0
+ gst_pad_template_new_with_gtype@Base 1.14.0
  gst_pad_template_pad_created@Base 1.0.0
  gst_pad_unlink@Base 1.0.0
  gst_pad_use_fixed_caps@Base 1.0.0
+ gst_param_spec_array@Base 1.12.0
+ gst_param_spec_array_get_type@Base 1.12.0
  gst_param_spec_fraction@Base 1.0.0
  gst_param_spec_fraction_get_type@Base 1.0.0
  gst_parent_buffer_meta_api_get_type@Base 1.6.0
  gst_parent_buffer_meta_get_info@Base 1.6.0
  gst_parse_bin_from_description@Base 1.0.0
  gst_parse_bin_from_description_full@Base 1.0.0
+ gst_parse_context_copy@Base 1.12.1
  gst_parse_context_free@Base 1.0.0
  gst_parse_context_get_missing_elements@Base 1.0.0
  gst_parse_context_get_type@Base 1.0.0
@@ -1605,7 +1680,21 @@
  gst_preset_save_preset@Base 1.0.0
  gst_preset_set_app_dir@Base 1.0.0
  gst_preset_set_meta@Base 1.0.0
+ gst_print@Base 1.12.0
+ gst_printerr@Base 1.12.0
+ gst_printerrln@Base 1.12.0
+ gst_println@Base 1.12.0
  gst_progress_type_get_type@Base 1.0.0
+ gst_promise_expire@Base 1.14.0
+ gst_promise_get_reply@Base 1.14.0
+ gst_promise_get_type@Base 1.14.0
+ gst_promise_interrupt@Base 1.14.0
+ gst_promise_new@Base 1.14.0
+ gst_promise_new_with_change_func@Base 1.14.0
+ gst_promise_reply@Base 1.14.0
+ gst_promise_result_get_type@Base 1.14.0
+ gst_promise_wait@Base 1.14.0
+ gst_protection_filter_systems_by_available_decryptors@Base 1.14.0
  gst_protection_meta_api_get_type@Base 1.6.0
  gst_protection_meta_get_info@Base 1.6.0
  gst_protection_select_system@Base 1.6.0
@@ -1704,6 +1793,8 @@
  gst_query_type_to_quark@Base 1.0.0
  gst_query_writable_structure@Base 1.0.0
  gst_rank_get_type@Base 1.0.0
+ gst_reference_timestamp_meta_api_get_type@Base 1.14.0
+ gst_reference_timestamp_meta_get_info@Base 1.14.0
  gst_registry_add_feature@Base 1.0.0
  gst_registry_add_plugin@Base 1.0.0
  gst_registry_check_feature_version@Base 1.0.0
@@ -1761,6 +1852,8 @@
  gst_segment_to_stream_time_full@Base 1.8.0
  gst_segtrap_is_enabled@Base 1.0.0
  gst_segtrap_set_enabled@Base 1.0.0
+ gst_stack_trace_flags_get_type@Base 1.12.0
+ gst_state_change_get_name@Base 1.14.0
  gst_state_change_get_type@Base 1.0.0
  gst_state_change_return_get_type@Base 1.0.0
  gst_state_get_type@Base 1.0.0
@@ -1808,6 +1901,7 @@
  gst_structure_free@Base 1.0.0
  gst_structure_from_string@Base 1.0.0
  gst_structure_get@Base 1.0.0
+ gst_structure_get_array@Base 1.12.0
  gst_structure_get_boolean@Base 1.0.0
  gst_structure_get_clock_time@Base 1.0.0
  gst_structure_get_date@Base 1.0.0
@@ -1819,6 +1913,7 @@
  gst_structure_get_fraction@Base 1.0.0
  gst_structure_get_int64@Base 1.4.0
  gst_structure_get_int@Base 1.0.0
+ gst_structure_get_list@Base 1.12.0
  gst_structure_get_name@Base 1.0.0
  gst_structure_get_name_id@Base 1.0.0
  gst_structure_get_string@Base 1.0.0
@@ -1856,6 +1951,8 @@
  gst_structure_remove_fields@Base 1.0.0
  gst_structure_remove_fields_valist@Base 1.0.0
  gst_structure_set@Base 1.0.0
+ gst_structure_set_array@Base 1.12.0
+ gst_structure_set_list@Base 1.12.0
  gst_structure_set_name@Base 1.0.0
  gst_structure_set_parent_refcount@Base 1.0.0
  gst_structure_set_valist@Base 1.0.0
@@ -1995,6 +2092,7 @@
  gst_toc_setter_reset@Base 1.0.0
  gst_toc_setter_set_toc@Base 1.0.0
  gst_tracer_factory_get_list@Base 1.8.0
+ gst_tracer_factory_get_tracer_type@Base 1.14.0
  gst_tracer_factory_get_type@Base 1.8.0
  gst_tracer_get_type@Base 1.8.0
  gst_tracer_record_get_type@Base 1.8.0
@@ -2029,6 +2127,7 @@
  gst_uri_get_fragment@Base 1.6.0
  gst_uri_get_host@Base 1.6.0
  gst_uri_get_location@Base 1.0.0
+ gst_uri_get_media_fragment_table@Base 1.12.0
  gst_uri_get_path@Base 1.6.0
  gst_uri_get_path_segments@Base 1.6.0
  gst_uri_get_path_string@Base 1.6.0
@@ -2075,12 +2174,14 @@
  gst_uri_type_get_type@Base 1.0.0
  gst_util_array_binary_search@Base 1.0.0
  gst_util_double_to_fraction@Base 1.0.0
+ gst_util_dump_buffer@Base 1.14.0
  gst_util_dump_mem@Base 1.0.0
  gst_util_fraction_add@Base 1.0.0
  gst_util_fraction_compare@Base 1.0.0
  gst_util_fraction_multiply@Base 1.0.0
  gst_util_fraction_to_double@Base 1.0.0
  gst_util_gdouble_to_guint64@Base 1.0.0
+ gst_util_get_object_array@Base 1.12.0
  gst_util_get_timestamp@Base 1.0.0
  gst_util_greatest_common_divisor@Base 1.0.0
  gst_util_greatest_common_divisor_int64@Base 1.0.0
@@ -2089,6 +2190,7 @@
  gst_util_seqnum_compare@Base 1.0.0
  gst_util_seqnum_next@Base 1.0.0
  gst_util_set_object_arg@Base 1.0.0
+ gst_util_set_object_array@Base 1.12.0
  gst_util_set_value_from_string@Base 1.0.0
  gst_util_uint64_scale@Base 1.0.0
  gst_util_uint64_scale_ceil@Base 1.0.0
diff --git a/debian/libgstreamer1.0-dev.lintian-overrides b/debian/libgstreamer1.0-dev.lintian-overrides
index 72c5743..2f5b391 100644
--- a/debian/libgstreamer1.0-dev.lintian-overrides
+++ b/debian/libgstreamer1.0-dev.lintian-overrides
@@ -1 +1,2 @@
 libgstreamer1.0-dev: manpage-has-bad-whatis-entry *
+libgstreamer1.0-dev: binary-package-depends-on-toolchain-package *
diff --git a/debian/patches/0001-mtk.patch b/debian/patches/0001-mtk.patch
index 208ab09..94e57b0 100644
--- a/debian/patches/0001-mtk.patch
+++ b/debian/patches/0001-mtk.patch
@@ -1,17 +1,108 @@
+From bdbe225a9c826bd9ecd44af48f957c131e8ce22a Mon Sep 17 00:00:00 2001
+From: Yuan Fang <yuan.fang@mediatek.com>
+Date: Wed, 14 Aug 2019 15:30:04 +0800
+Subject: [PATCH] upgrade-gst-to-1_14_4
+
+---
+ gst/gstallocator.c             |  6 ++++++
+ libs/gst/base/gstbaseparse.c   |  5 +++++
+ plugins/elements/gstfakesink.c | 36 ++++++++++++++++++++++++++++++++++++
+ 3 files changed, 47 insertions(+)
+
 diff --git a/gst/gstallocator.c b/gst/gstallocator.c
-index 367fc2a9..ee78caf1 100644
+index 4b78a33..2b7fb27 100644
 --- a/gst/gstallocator.c
 +++ b/gst/gstallocator.c
-@@ -591,6 +591,12 @@ _priv_gst_allocator_initialize (void)
+@@ -592,6 +592,12 @@ _priv_gst_allocator_initialize (void)
    GST_CAT_DEBUG (GST_CAT_MEMORY, "memory alignment: %" G_GSIZE_FORMAT,
        gst_memory_alignment);
  
-+  if (gst_memory_alignment < 127) {
-+    gst_memory_alignment = 127;
-+  }
-+  GST_CAT_DEBUG (GST_CAT_MEMORY, "Adjusted memory alignment: %" G_GSIZE_FORMAT,
-+      gst_memory_alignment);
++    if (gst_memory_alignment < 127)
++	{
++      gst_memory_alignment = 127;
++	}
++	GST_CAT_DEBUG (GST_CAT_MEMORY, "Adjusted memory alignment: %" G_GSIZE_FORMAT,gst_memory_alignment);
 +
    _sysmem_allocator = g_object_new (gst_allocator_sysmem_get_type (), NULL);
  
-   gst_allocator_register (GST_ALLOCATOR_SYSMEM,
+   /* Clear floating flag */
+diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c
+index 9a8f986..1630af1 100644
+--- a/libs/gst/base/gstbaseparse.c
++++ b/libs/gst/base/gstbaseparse.c
+@@ -2522,6 +2522,11 @@ gst_base_parse_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
+     }
+   }
+ 
++	if (frame->flags & GST_BASE_PARSE_FRAME_FLAG_DROP) {
++		GST_LOG_OBJECT (parse, "frame with drop flag");
++		ret = GST_BASE_PARSE_FLOW_DROPPED;
++	}
++
+   if (ret == GST_BASE_PARSE_FLOW_DROPPED) {
+     GST_LOG_OBJECT (parse, "frame (%" G_GSIZE_FORMAT " bytes) dropped", size);
+     if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_DISCONT))
+diff --git a/plugins/elements/gstfakesink.c b/plugins/elements/gstfakesink.c
+index b71f20f..d8fa7d6 100644
+--- a/plugins/elements/gstfakesink.c
++++ b/plugins/elements/gstfakesink.c
+@@ -37,6 +37,11 @@
+ #  include "config.h"
+ #endif
+ 
++#define DEBUG_SINK_PERFORMANCE
++#ifdef DEBUG_SINK_PERFORMANCE
++#include <sys/time.h>
++#endif
++
+ #include "gstelements_private.h"
+ #include "gstfakesink.h"
+ #include <string.h>
+@@ -435,6 +440,33 @@ eos:
+   }
+ }
+ 
++#ifdef DEBUG_SINK_PERFORMANCE
++static void
++gst_fake_sink_debug_performance(GstFakeSink * sink)
++{
++  static gfloat costTime=0.0;
++  gfloat avgTimeOnce=0.0;
++
++  static guint count=0;
++
++  static struct timeval tpStart;
++  struct timeval tpEnd;
++
++  count++;
++  if (count == 1) {
++    gettimeofday(&tpStart,NULL);
++  }
++
++  if(count % 100 == 0) {
++    gettimeofday(&tpEnd,NULL);
++
++    costTime = 1000000*(tpEnd.tv_sec-tpStart.tv_sec)+(tpEnd.tv_usec-tpStart.tv_usec);
++    avgTimeOnce = costTime/count; //us
++    GST_INFO_OBJECT (sink, "FPS info: total %d frames,costTime=%fus,avg=%fms,fps=%f",count,costTime,avgTimeOnce/1000,1*1000/(avgTimeOnce/1000));
++  }
++}
++#endif
++
+ static GstFlowReturn
+ gst_fake_sink_render (GstBaseSink * bsink, GstBuffer * buf)
+ {
+@@ -443,6 +475,10 @@ gst_fake_sink_render (GstBaseSink * bsink, GstBuffer * buf)
+   if (sink->num_buffers_left == 0)
+     goto eos;
+ 
++#ifdef DEBUG_SINK_PERFORMANCE
++  gst_fake_sink_debug_performance (sink);
++#endif
++
+   if (sink->num_buffers_left != -1)
+     sink->num_buffers_left--;
+ 
+-- 
+1.9.1
+
diff --git a/debian/patches/0001-registrybinary-Update-magic-version-string.patch b/debian/patches/0001-registrybinary-Update-magic-version-string.patch
new file mode 100644
index 0000000..660460d
--- /dev/null
+++ b/debian/patches/0001-registrybinary-Update-magic-version-string.patch
@@ -0,0 +1,33 @@
+From bd4191b2b06e1558b87a3ab5b0e17572f7633edb Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
+Date: Mon, 3 Jul 2017 09:09:25 +0300
+Subject: [PATCH] registrybinary: Update magic version string
+
+This forces a regeneration of the registry and unblacklists anything
+that was blacklisted before if possible.
+
+See
+
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866339
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866103
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819594#26
+---
+ gst/gstregistrybinary.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gst/gstregistrybinary.h b/gst/gstregistrybinary.h
+index 22e56d19..f98e3441 100644
+--- a/gst/gstregistrybinary.h
++++ b/gst/gstregistrybinary.h
+@@ -55,7 +55,7 @@ G_BEGIN_DECLS
+  * This _must_ be updated whenever the registry format changes,
+  * we currently use the core version where this change happened.
+  */
+-#define GST_MAGIC_BINARY_VERSION_STR "1.3.0"
++#define GST_MAGIC_BINARY_VERSION_STR "1.12.0"
+ 
+ /*
+  * GST_MAGIC_BINARY_VERSION_LEN:
+-- 
+2.13.2
+
diff --git a/debian/patches/0002-gstconfig.h.in-initial-RISC-V-support.patch b/debian/patches/0002-gstconfig.h.in-initial-RISC-V-support.patch
new file mode 100644
index 0000000..abc1c17
--- /dev/null
+++ b/debian/patches/0002-gstconfig.h.in-initial-RISC-V-support.patch
@@ -0,0 +1,30 @@
+From 8a156d1725ecd03f2e8cdc8874e081dda2d3b43d Mon Sep 17 00:00:00 2001
+From: Aurelien Jarno <aurelien@aurel32.net>
+Date: Sun, 15 Apr 2018 00:49:55 +0200
+Subject: [PATCH] gstconfig.h.in: initial RISC-V support
+
+RISC-V supports unaligned accesses, but these might run extremely slowly
+depending on the implementation. Therefore set GST_HAVE_UNALIGNED_ACCESS
+to 0 on this architecture.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=795271
+---
+ gst/gstconfig.h.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gst/gstconfig.h.in b/gst/gstconfig.h.in
+index 6351c04da..33dfed1f6 100644
+--- a/gst/gstconfig.h.in
++++ b/gst/gstconfig.h.in
+@@ -104,7 +104,7 @@
+  * http://docs.oracle.com/cd/E19205-01/820-4155/c++_faq.html#Vers6
+  * https://software.intel.com/en-us/node/583402
+  */
+-#if defined(__alpha__) || defined(__arc__) || defined(__arm__) || defined(__aarch64__) || defined(__bfin) || defined(__hppa__) || defined(__nios2__) || defined(__MICROBLAZE__) || defined(__mips__) || defined(__or1k__) || defined(__sh__) || defined(__SH4__) || defined(__sparc__) || defined(__sparc) || defined(__ia64__) || defined(_M_ALPHA) || defined(_M_ARM) || defined(_M_IA64) || defined(__xtensa__) || defined(__e2k__)
++#if defined(__alpha__) || defined(__arc__) || defined(__arm__) || defined(__aarch64__) || defined(__bfin) || defined(__hppa__) || defined(__nios2__) || defined(__MICROBLAZE__) || defined(__mips__) || defined(__or1k__) || defined(__sh__) || defined(__SH4__) || defined(__sparc__) || defined(__sparc) || defined(__ia64__) || defined(_M_ALPHA) || defined(_M_ARM) || defined(_M_IA64) || defined(__xtensa__) || defined(__e2k__) || defined(__riscv)
+ #  define GST_HAVE_UNALIGNED_ACCESS 0
+ #elif defined(__i386__) || defined(__i386) || defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__ppc__) || defined(__ppc64__) || defined(__powerpc__) || defined(__powerpc64__) || defined(__m68k__) || defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) || defined(__s390__) || defined(__s390x__) || defined(__zarch__)
+ #  define GST_HAVE_UNALIGNED_ACCESS 1
+-- 
+2.18.0
+
diff --git a/debian/patches/series b/debian/patches/series
index 5a5022b..9339fe1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,3 @@
+0001-registrybinary-Update-magic-version-string.patch
+0002-gstconfig.h.in-initial-RISC-V-support.patch
 0001-mtk.patch
diff --git a/debian/rules b/debian/rules
index b87f00a..0d67d71 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,10 @@
 include /usr/share/cdbs/1/rules/autoreconf.mk
 include /usr/share/gnome-pkg-tools/1/rules/clean-la.mk
 
+# Work-around for gtk-doc bug:
+# https://bugzilla.gnome.org/show_bug.cgi?id=783926
+export PYTHONIOENCODING="utf-8"
+
 export HOME=$(CURDIR)/fake-home
 
 DEB_BUILD_PARALLEL = 1
@@ -213,7 +217,7 @@
 DEB_SHLIBDEPS_INCLUDE += debian/$(gst_lib)/usr/lib/$(DEB_HOST_MULTIARCH)
 
 install/$(gst_lib_dev)::
-	$(DEB_HOST_GNU_TYPE)-gcc -o debian/tmp/usr/bin/gst-codec-info-1.0 debian/gst-codec-info.c $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `$(DEB_HOST_GNU_TYPE)-pkg-config --libs --cflags glib-2.0 gthread-2.0 gmodule-no-export-2.0 gobject-2.0` debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgstreamer-1.0.so -Idebian/tmp/usr/include/gstreamer-1.0 -Idebian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-1.0/include
+	$(DEB_HOST_GNU_TYPE)-gcc -o debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer1.0/gstreamer-1.0/gst-codec-info-1.0 debian/gst-codec-info.c $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) `$(DEB_HOST_GNU_TYPE)-pkg-config --libs --cflags glib-2.0 gthread-2.0 gmodule-no-export-2.0 gobject-2.0` debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgstreamer-1.0.so -Idebian/tmp/usr/include/gstreamer-1.0 -Idebian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-1.0/include
 	perldoc -o man debian/dh_gstscancodecs > debian/tmp/usr/share/man/man1/dh_gstscancodecs.1
 
 .PHONY: maint