case V4L_AUDIO_MUTE: temp = v4lelement->mute; break;
case V4L_AUDIO_VOLUME: temp = v4lelement->volume; break;
case V4L_AUDIO_MODE: temp = v4lelement->mode; break;
+ default: temp = 0; g_assert_not_reached ();
}
if (temp >= 0 && gst_v4l_has_audio(v4lelement))
{
case V4L_PICTURE_BRIGHTNESS: temp = v4lelement->brightness; break;
case V4L_PICTURE_SATURATION: temp = v4lelement->saturation; break;
case V4L_PICTURE_CONTRAST: temp = v4lelement->contrast; break;
+ default: temp = 0; g_assert_not_reached ();
}
if (temp >= 0)
{
guint prop_id,
GValue *value,
GParamSpec *pspec);
-static void gst_v4lmjpegsink_close (GstV4lMjpegSink *v4lmjpegsink);
static GstElementStateReturn gst_v4lmjpegsink_change_state (GstElement *element);
static void gst_v4lmjpegsink_set_clock (GstElement *element, GstClock *clock);
if (v4lmjpegsink->clock) {
GST_DEBUG (0,"videosink: clock wait: %llu", GST_BUFFER_TIMESTAMP(buf));
- jitter = gst_clock_current_diff(v4lmjpegsink->clock, GST_BUFFER_TIMESTAMP (buf));
+ jitter = 0; /* FIXME: jitter = gst_clock_current_diff(v4lmjpegsink->clock, GST_BUFFER_TIMESTAMP (buf)); */
if (jitter > 500000 || jitter < -500000)
GST_DEBUG (0, "jitter: %lld", jitter);
break;
}
- if (GST_ELEMENT_CLASS (parent_class)->change_state)
+ if (GST_ELEMENT_CLASS (parent_class)->change_state) {
parent_value = GST_ELEMENT_CLASS (parent_class)->change_state (element);
+ } else {
+ parent_value = GST_STATE_FAILURE;
+ }
if (GST_STATE_TRANSITION(element) == GST_STATE_NULL_TO_READY)
{
break;
}
- if (GST_ELEMENT_CLASS (parent_class)->change_state)
+ if (GST_ELEMENT_CLASS (parent_class)->change_state) {
parent_value = GST_ELEMENT_CLASS (parent_class)->change_state (element);
+ } else {
+ parent_value = GST_STATE_FAILURE;
+ }
if (GST_STATE_TRANSITION(element) == GST_STATE_NULL_TO_READY)
{