dvb: Fixups for latest API changes

This commit is contained in:
Edward Hervey 2012-05-22 19:11:29 +02:00
parent a0a184931a
commit 5c4dd29838
2 changed files with 3 additions and 2 deletions

View file

@ -239,7 +239,8 @@ dvb_base_bin_class_init (DvbBaseBinClass * klass)
/* install dvbsrc properties */
dvbsrc_factory = gst_element_factory_find ("dvbsrc");
dvbsrc_class = g_type_class_ref (dvbsrc_factory->type);
dvbsrc_class =
g_type_class_ref (gst_element_factory_get_element_type (dvbsrc_factory));
walk = proxyed_properties;
while (walk->prop_name != NULL) {
GParamSpec *pspec;

View file

@ -952,7 +952,7 @@ stopped:
GST_DEBUG_OBJECT (object, "stop called");
gst_buffer_unmap (buf, &map);
gst_buffer_unref (buf);
return GST_FLOW_WRONG_STATE;
return GST_FLOW_FLUSHING;
}
select_error:
{