summaryrefslogtreecommitdiff
path: root/legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2009-05-15 11:48:32 +0000
committerCarsten Haitzler <raster@rasterman.com>2009-05-15 11:48:32 +0000
commit67db885317ec0335bb0facfd738a48fe25315a0d (patch)
treedc7086a7eed75d8768d45d070b2a187305aba4db /legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c
parent1d75ac114aff9dd70b4da63203c237cb6bd00be2 (diff)
gstreamer fixes
SVN revision: 40671
Diffstat (limited to '')
-rw-r--r--legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c
index ea8a6f26f1..48b9f00dde 100644
--- a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c
+++ b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline_dvd.c
@@ -101,6 +101,7 @@ emotion_pipeline_dvd_build(void *video, const char *device)
101 GstCaps *sink_caps; 101 GstCaps *sink_caps;
102 102
103 asink = (Emotion_Audio_Sink *)eina_list_data_get(alist); 103 asink = (Emotion_Audio_Sink *)eina_list_data_get(alist);
104 alist = eina_list_next(alist);
104 sink_pad = gst_element_get_pad(gst_bin_get_by_name(GST_BIN(ev->pipeline), "a52dec"), "src"); 105 sink_pad = gst_element_get_pad(gst_bin_get_by_name(GST_BIN(ev->pipeline), "a52dec"), "src");
105 sink_caps = gst_pad_get_caps(sink_pad); 106 sink_caps = gst_pad_get_caps(sink_pad);
106 107
@@ -165,7 +166,7 @@ dvd_pad_added_cb(GstElement *dvddemuxer,
165 vsink = (Emotion_Video_Sink *)malloc(sizeof(Emotion_Video_Sink)); 166 vsink = (Emotion_Video_Sink *)malloc(sizeof(Emotion_Video_Sink));
166 if (!vsink) return; 167 if (!vsink) return;
167 ev->video_sinks = eina_list_append(ev->video_sinks, vsink); 168 ev->video_sinks = eina_list_append(ev->video_sinks, vsink);
168 if (!eina_list_data_find(ev->video_sinks, vsink)) 169 if (eina_error_get())
169 { 170 {
170 free(vsink); 171 free(vsink);
171 return; 172 return;
@@ -203,7 +204,7 @@ dvd_pad_added_cb(GstElement *dvddemuxer,
203 asink = (Emotion_Audio_Sink *)malloc(sizeof(Emotion_Audio_Sink)); 204 asink = (Emotion_Audio_Sink *)malloc(sizeof(Emotion_Audio_Sink));
204 if (!asink) return; 205 if (!asink) return;
205 ev->audio_sinks = eina_list_append(ev->audio_sinks, asink); 206 ev->audio_sinks = eina_list_append(ev->audio_sinks, asink);
206 if (!eina_list_data_find(ev->audio_sinks, asink)) 207 if (eina_error_get())
207 { 208 {
208 free(asink); 209 free(asink);
209 return; 210 return;