Remove FastZapSupport plugin.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-multimedia / gstreamer / gstreamer1.0-plugin-dvbmediasink / gstreamer10_dvbmediasink_vuplus.patch
1 diff --git a/gstdvbaudiosink.c b/gstdvbaudiosink.c
2 index 2b87caa..afd5fb6 100644
3 --- a/gstdvbaudiosink.c
4 +++ b/gstdvbaudiosink.c
5 @@ -270,7 +270,9 @@ static void gst_dvbaudiosink_class_init(GstDVBAudioSinkClass *self)
6         gstbasesink_class->event = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_event);
7         gstbasesink_class->unlock = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_unlock);
8         gstbasesink_class->unlock_stop = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_unlock_stop);
9 +#if GST_VERSION_MAJOR < 1
10         gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_set_caps);
11 +#endif
12         gstbasesink_class->get_caps = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_get_caps);
13  
14         element_class->change_state = GST_DEBUG_FUNCPTR(gst_dvbaudiosink_change_state);
15 @@ -425,6 +427,11 @@ static gboolean gst_dvbaudiosink_set_caps(GstBaseSink *basesink, GstCaps *caps)
16         const char *type = gst_structure_get_name(structure);
17         t_audio_type bypass = AUDIOTYPE_UNKNOWN;
18  
19 +       if (self->bypass != AUDIOTYPE_UNKNOWN) {
20 +               GST_INFO_OBJECT (self, "skip set_caps, should be done only once.");
21 +               return TRUE;
22 +       }
23 +
24         self->skip = 0;
25         self->aac_adts_header_valid = FALSE;
26  
27 diff --git a/gstdvbvideosink.c b/gstdvbvideosink.c
28 index fbebd11..657006e 100644
29 --- a/gstdvbvideosink.c
30 +++ b/gstdvbvideosink.c
31 @@ -299,8 +299,9 @@ static void gst_dvbvideosink_class_init(GstDVBVideoSinkClass *self)
32         gstbasesink_class->event = GST_DEBUG_FUNCPTR (gst_dvbvideosink_event);
33         gstbasesink_class->unlock = GST_DEBUG_FUNCPTR (gst_dvbvideosink_unlock);
34         gstbasesink_class->unlock_stop = GST_DEBUG_FUNCPTR (gst_dvbvideosink_unlock_stop);
35 +#if GST_VERSION_MAJOR < 1
36         gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_dvbvideosink_set_caps);
37 -
38 +#endif
39         element_class->change_state = GST_DEBUG_FUNCPTR (gst_dvbvideosink_change_state);
40  
41         gst_dvb_videosink_signals[SIGNAL_GET_DECODER_TIME] =
42 @@ -1556,6 +1557,10 @@ static gboolean gst_dvbvideosink_set_caps(GstBaseSink *basesink, GstCaps *caps)
43                                         gst_buffer_ref (self->codec_data);
44                                 }
45                                 GST_INFO_OBJECT (self, "MIMETYPE video/x-divx vers. 4 -> STREAMTYPE_MPEG4_Part2");
46 +#if GST_VERSION_MAJOR >= 1
47 +                               self->use_dts = TRUE;
48 +#endif
49 +
50                         break;
51                         case 6:
52                         case 5: