gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r9929: call gst_init in VideoDecoder


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9929: call gst_init in VideoDecoderGst constructor (for consistency with AudioDecoderGst) -- I thikn this may be saner to do in MediaHandlerGst ctor btw...
Date: Mon, 06 Oct 2008 10:52:36 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9929
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2008-10-06 10:52:36 +0200
message:
  call gst_init in VideoDecoderGst constructor (for consistency with 
AudioDecoderGst) -- I thikn this may be saner to do in MediaHandlerGst ctor 
btw...
modified:
  libmedia/gst/VideoDecoderGst.cpp
=== modified file 'libmedia/gst/VideoDecoderGst.cpp'
--- a/libmedia/gst/VideoDecoderGst.cpp  2008-10-05 00:08:38 +0000
+++ b/libmedia/gst/VideoDecoderGst.cpp  2008-10-06 08:52:36 +0000
@@ -34,13 +34,17 @@
 
 VideoDecoderGst::VideoDecoderGst(GstCaps* caps)
 {
+    // init GStreamer. TODO: what about doing this in MediaHandlerGst ctor?
+    gst_init (NULL, NULL);
+
     setup(caps);
 }
 
 
 VideoDecoderGst::VideoDecoderGst(videoCodecType codec_type, int width, int 
height)
 {
-  gst_init (NULL, NULL);
+    // init GStreamer. TODO: what about doing this in MediaHandlerGst ctor?
+    gst_init (NULL, NULL);
 
   GstCaps* caps;  
   switch (codec_type) {
@@ -88,8 +92,6 @@
 void
 VideoDecoderGst::setup(GstCaps* srccaps)
 {
-    gst_init (NULL, NULL);
-
     GstCaps* sinkcaps;
  
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]