gstreamer_test_apps/gstplayer/src/GSTPlayerappui.cpp
changeset 35 e3187d58ca5e
parent 27 d43ce56a1534
equal deleted inserted replaced
33:ec10aa4a09b0 35:e3187d58ca5e
   134         case EEikCmdExit:
   134         case EEikCmdExit:
   135         case EAknSoftkeyExit:
   135         case EAknSoftkeyExit:
   136             if (pipeline!=NULL && pipeline ->current_state
   136             if (pipeline!=NULL && pipeline ->current_state
   137                     == GST_STATE_PLAYING)
   137                     == GST_STATE_PLAYING)
   138                 {
   138                 {
   139 
   139                 gst_element_send_event (pipeline, gst_event_new_eos ());
   140                 gst_element_set_state(pipeline, GST_STATE_NULL);
   140                 gst_element_set_state(pipeline, GST_STATE_NULL);
   141                 gst_object_unref(GST_OBJECT (pipeline));
   141                 gst_object_unref(GST_OBJECT (pipeline));
   142 
   142 
   143                 }
   143                 }
   144             Exit();
   144             Exit();