~ubuntu-branches/ubuntu/saucy/phonon-backend-gstreamer/saucy

« back to all changes in this revision

Viewing changes to gstreamer/x11renderer.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-02-16 21:50:11 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120216215011-wv2qn430er68r7k0
Tags: 4:4.7.0really4.6.0-0ubuntu1
* New upstream release.
* Bump build-dependency on phonon to 4:4.7.0really4.6.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
            // Note that this should not really be necessary as these are
93
93
            // default values, though under certain conditions values are retained
94
94
            // even between application instances. (reproducible on 0.10.16/Gutsy)
95
 
            g_object_set(G_OBJECT(videoSink), "brightness", 0, (const char*)NULL);
96
 
            g_object_set(G_OBJECT(videoSink), "contrast", 0, (const char*)NULL);
97
 
            g_object_set(G_OBJECT(videoSink), "hue", 0, (const char*)NULL);
98
 
            g_object_set(G_OBJECT(videoSink), "saturation", 0, (const char*)NULL);
 
95
            g_object_set(G_OBJECT(videoSink), "brightness", 0, NULL);
 
96
            g_object_set(G_OBJECT(videoSink), "contrast", 0, NULL);
 
97
            g_object_set(G_OBJECT(videoSink), "hue", 0, NULL);
 
98
            g_object_set(G_OBJECT(videoSink), "saturation", 0, NULL);
99
99
        }
100
100
    }
101
101
    QByteArray tegraEnv = qgetenv("TEGRA_GST_OPENMAX");
112
112
    return videoSink;
113
113
}
114
114
 
115
 
void X11Renderer::handleMediaNodeEvent(const MediaNodeEvent *event)
116
 
{
117
 
    switch (event->type()) {
118
 
    case MediaNodeEvent::SourceChanged:
119
 
        setOverlay(); // We need to do this whenever the pipeline is reset
120
 
        break;        // otherwise the videosink will open in its own window
121
 
    default:
122
 
        break;
123
 
    }
124
 
}
125
 
 
126
 
 
127
115
void X11Renderer::aspectRatioChanged(Phonon::VideoWidget::AspectRatio)
128
116
{
129
117
    if (m_renderWidget) {