emotion: don't use the pipeline anymore when it's not needed.

SVN revision: 63497
This commit is contained in:
Cedric BAIL 2011-09-20 11:04:54 +00:00
parent 973717b9bf
commit c07415b8bd
2 changed files with 3 additions and 3 deletions

View File

@ -870,8 +870,9 @@ em_video_data_size_get(void *video, int *w, int *h)
ev = (Emotion_Gstreamer_Video *)video;
if (!_emotion_gstreamer_video_pipeline_parse(ev, EINA_FALSE))
goto on_error;
if (ev->pipeline && (!ev->video_stream_nbr || !ev->video_streams))
if (!_emotion_gstreamer_video_pipeline_parse(ev, EINA_FALSE))
goto on_error;
vstream = eina_list_nth(ev->video_streams, ev->video_stream_nbr - 1);
if (vstream)

View File

@ -1051,7 +1051,6 @@ gstreamer_video_sink_new(Emotion_Gstreamer_Video *ev,
#else
# warning "no ecore_x or xoverlay"
#endif
fprintf(stderr, "sink: %p\n", sink);
if (!sink)
{
sink = gst_element_factory_make("emotion-sink", "sink");