Add fix from Szilveszter Ördög to fix audio encoding issue 732975

parent c1972e95
......@@ -15,7 +15,9 @@ Laszly Pandy <laszlok2(at)gmail.com>
Claude Paroz <claude(at)2xlibre.net>
Javier Jardón <jjardon(at)gnome.org>
Frederik Elwert <frederik.elwert(at)web.de>
Marek Černocký <marek(at)manet.cz
Marek Černocký <marek(at)manet.cz>
Szilveszter Ördög <slipszi(at)gmail.com>
Richard Hughes <<richard<at)hughsie.com>
Translations:
Łukasz Jernaś <deejay1@srem.org>
......
1.4
Fix audio encoding bug
Fix Apppdata information
1.3 -
Fix embarassing bug where I had turned off Vaapi decoding by mistake
1.2 -
......
......@@ -15,7 +15,12 @@ Authors = ["Christian Schaller <uraeus@gnome.org>",
"Tom Parker <palfrey@tevp.neta>",
"Arun Raghavan <arunsr@gnome.org>",
"Laszlo Pandy <laszlok2@gmail.com>",
"Claude Paroz <claude@2xlibre.net>"
"Claude Paroz <claude@2xlibre.net>",
"Javier Jardón <jjardon@gnome.org>",
"Frederik Elwert <frederik.elwert@web.de>",
"Marek Černocký <marek@manet.cz>",
"Szilveszter Ördög <slipszi@gmail.com>",
"Richard Hughes <richard@hughsie.com>"
]
Artists = ["Jakub Steiner <jimmac@gnome.org>"]
......
......@@ -163,6 +163,13 @@ class Transcoder(GObject.GObject):
self.encodebin.set_property("avoid-reencoding", True)
self.pipeline.add(self.encodebin)
self.encodebin.set_state(Gst.State.PAUSED)
self.audiopads = {}
x=0
while x < len(self.audiodata):
if self.audiodata[x]['outputaudiocaps'] != (False or "noaud"):
if self.streamdata['container']!=False:
self.audiopads[x] = self.encodebin.emit("request-profile-pad", "audioprofilename"+str(x))
x=x+1
self.uridecoder = Gst.ElementFactory.make("uridecodebin", "uridecoder")
self.uridecoder.set_property("uri", self.streamdata['filechoice'])
......@@ -295,8 +302,7 @@ class Transcoder(GObject.GObject):
if self.probestreamid not in self.usedstreamids:
self.usedstreamids.append(self.probestreamid)
if self.audiodata[x]['outputaudiocaps'] != 'noaud':
sinkpad = self.encodebin.emit("request-profile-pad", "audioprofilename"+str(x))
pad.link(sinkpad)
pad.link(self.audiopads[x])
x=x+1
return Gst.PadProbeReturn.OK
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment