gstreamer_test_apps/gstplayer/src/GSTPlayerappui.cpp
changeset 34 1b8125c02661
parent 26 69c7080681bf
equal deleted inserted replaced
32:bacedbef5672 34:1b8125c02661
   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();