dvb: Fixups for latest API changes
authorEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 22 May 2012 17:11:29 +0000 (19:11 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Tue, 22 May 2012 17:11:29 +0000 (19:11 +0200)
sys/dvb/dvbbasebin.c
sys/dvb/gstdvbsrc.c

index c0b7dd78d1b153581e83e03ff5b01440e5f84899..f3d804dfba4d5fe74e34d2a3703eccada5f7630b 100644 (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;
index 3fd7963ad49c0012e7b6bdd4dc0ab2cc509e2738..7721f490ff63fca5a5f391406631e905811ee2e0 100644 (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:
   {