Skip to content

Instantly share code, notes, and snippets.

using Clutter;
using Gst;
using ClutterGst;
class AwesomeVideoActor {
private Clutter.Stage stage;
private Gst.Pipeline pipeline;
private Gst.Bus bus;
(process:25579): Clutter-CRITICAL **: clutter_id_pool_add: assertion `id_pool != NULL' failed
(process:25579): ClutterGLX-CRITICAL **: Unable to find suitable GL visual.
(awesome:25579): GStreamer-CRITICAL **:
Trying to dispose element cluttergstvideosink0, but it is in READY instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
#!/usr/bin/python
import os, sys, optparse
import clutter
import gtk
import gst
import cluttergst
import gobject
gobject.threads_init()
using Gtk;
using Gst;
public class VideoSample : Window {
private DrawingArea drawing_area;
private Pipeline pipeline;
private Element src;
private Element sink;
private Element decode;
using Clutter;
using Mx;
class ButtonBar : Mx.BoxLayout {
public signal void play();
public signal void spin1();
public signal void spin2();
delegate void ClickResponder();
using Clutter;
using Mx;
class ButtonBar : Mx.BoxLayout {
public signal void play();
public signal void spin1();
public signal void spin2();
delegate void ClickResponder(Mx.Button button);
using Clutter;
using Gst;
using ClutterGst;
using Mx;
public class VideoPlayer {
private string fileName;
private Pipeline pipeline;
private Element src;
private Element sink;
MxBoxLayout {
padding: 10;
background-color: #8888;
/* FIXME: These don't work until Mx 1.1 */
spacing: 10;
opacity: 50.5;
}
#ifndef SORTEDLIST_H
#define SORTEDLIST_H
#include <QList>
#include <QObject>
#include <QtAlgorithms>
template <typename T>
class SortedList : public QList<T>
{
#ifndef SORTEDLIST_H
#define SORTEDLIST_H
#include <QList>
#include <QtAlgorithms>
template <typename T>
class SortedList : public QList<T>
{
public: