Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 480098 Details for
Bug 610436
<app-misc/gourmet-0.17.4-r2: [sound] uses security vulnerable gstreamer-0.10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gst1.diff
02_gstreamer-1.0.diff (text/plain), 1.04 KB, created by
Pacho Ramos
on 2017-07-03 08:40:56 UTC
(
hide
)
Description:
gst1.diff
Filename:
MIME Type:
Creator:
Pacho Ramos
Created:
2017-07-03 08:40:56 UTC
Size:
1.04 KB
patch
obsolete
>--- a/gourmet/sound.py >+++ b/gourmet/sound.py >@@ -1,5 +1,7 @@ > try: >- from sound_gst import Player >+ import gi >+ gi.require_version('Gst', '1.0') >+ from gi.repository import GObject, Gst, Gtk > except ImportError: > print 'No gst player' > try: >--- a/gourmet/sound_gst.py >+++ b/gourmet/sound_gst.py >@@ -1,15 +1,15 @@ >-import pygst >-pygst.require("0.10") >-import gst >+import gi >+gi.require_version('Gst', '1.0') >+from gi.repository import GObject, Gst > > class Player: > def __init__ (self): >- self.player = gst.element_factory_make('playbin2','player') >+ self.player = Gst.element_factory_make('playbin2','player') > > def play_file (self,path): >- self.player.set_state(gst.STATE_NULL) >+ self.player.set_state(Gst.STATE_NULL) > self.player.set_property('uri','file://'+path) >- self.player.set_state(gst.STATE_PLAYING) >+ self.player.set_state(Gst.STATE_PLAYING) > > def stop_play (self,path): >- self.player.set_state(gst.STATE_NULL) >+ self.player.set_state(Gst.STATE_NULL)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 610436
: 480098